Добавлено сохранение после удалений кораблей

This commit is contained in:
Павел Сорокин 2023-03-12 11:27:11 +04:00
parent c1075ad46a
commit 0691d3f44f

View File

@ -103,6 +103,15 @@ namespace ShipyardFileImplement.Implements
shop.Ships[model.Id] = (shop.Ships[model.Id].Item1, countInCurrentShop - count);
count = 0;
}
Update(new ShopBindingModel
{
Id = shop.Id,
ShopName = shop.ShopName,
Address = shop.Address,
DateOpen = shop.DateOpen,
Ships = shop.Ships,
Capacity = shop.Capacity
});
if (count == 0)
{
return true;