Добавлено сохранение после удалений кораблей
This commit is contained in:
parent
c1075ad46a
commit
0691d3f44f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user