Мелкие исправления

This commit is contained in:
Илья 2024-03-10 16:54:32 +04:00
parent 31bcb77f01
commit 69123995cd
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ namespace IceCreamShopBusinessLogic.BusinessLogics
var shopList = _shopStorage.GetFullList();
int shopsCapacity = shopList.Sum(x => x.IceCreamsMaximum);
int currentIceCreams = shopList.Select(x => x.ShopIceCreams.Select(y => y.Value.Item2).Sum()).Sum();
int currentIceCreams = shopList.Select(x => x.ShopIceCreams.Sum(y => y.Value.Item2)).Sum();
int freePlaces = shopsCapacity - currentIceCreams;
if (freePlaces < count)

View File

@ -113,7 +113,7 @@ namespace IceCreamShopFileImplement.Implements
}
shop.Update(new ShopBindingModel
{
Id = model.Id,
Id = shop.Id,
ShopName = shop.ShopName,
Address = shop.Address,
DateOpening = shop.DateOpening,