This commit is contained in:
Łukasz Góreczny 2021-01-22 08:42:52 +01:00
parent 18aebc4733
commit 844137b551

View File

@ -41,14 +41,14 @@ namespace SessionCompanion.Services.Services
await Repository.Update(shopkeeper);
}
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();
newActiveShopkeeper.IsAvailable = false;
await Repository.Update(newActiveShopkeeper);
await Repository.Save();
return new SuccessResponse("Shopkeepers updated") { SuccessCode = 200 };
return new SuccessResponse("Shopkeepers updated") { StatusCode = 200 };
}
catch (Exception e)
{