fix typo
This commit is contained in:
parent
18aebc4733
commit
844137b551
@ -41,14 +41,14 @@ namespace SessionCompanion.Services.Services
|
|||||||
await Repository.Update(shopkeeper);
|
await Repository.Update(shopkeeper);
|
||||||
}
|
}
|
||||||
await Repository.Save();
|
await Repository.Save();
|
||||||
return new SuccessResponse("Shopkeepers updated") { SuccessCode = 200 };
|
return new SuccessResponse("Shopkeepers updated") { StatusCode = 200 };
|
||||||
}
|
}
|
||||||
|
|
||||||
var newActiveShopkeeper = shopkeepers.Where(c => c.Id.Equals(shopkeeperId)).Single();
|
var newActiveShopkeeper = shopkeepers.Where(c => c.Id.Equals(shopkeeperId)).Single();
|
||||||
newActiveShopkeeper.IsAvailable = false;
|
newActiveShopkeeper.IsAvailable = false;
|
||||||
await Repository.Update(newActiveShopkeeper);
|
await Repository.Update(newActiveShopkeeper);
|
||||||
await Repository.Save();
|
await Repository.Save();
|
||||||
return new SuccessResponse("Shopkeepers updated") { SuccessCode = 200 };
|
return new SuccessResponse("Shopkeepers updated") { StatusCode = 200 };
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user