This commit is contained in:
parent 855bcfd6ec
commit b22d110752

View File

@ -180,10 +180,14 @@ namespace AircraftPlantDatabaseImplement.Implements
{ {
shop.ShopPlanes[model.Id] = (shop.ShopPlanes[model.Id].Item1, countInCurrentShop - count); shop.ShopPlanes[model.Id] = (shop.ShopPlanes[model.Id].Item1, countInCurrentShop - count);
count = 0; count = 0;
shop.Update(new ShopBindingModel shop.UpdatePlanes(context, new ShopBindingModel
{ {
Id = shop.Id, Id = shop.Id,
ShopPlanes = shop.ShopPlanes ShopName = shop.ShopName,
Address = shop.Address,
DateOpening = shop.DateOpening,
ShopPlanes = shop.ShopPlanes,
MaxPlanes = shop.MaxPlanes
}); });
} }
if (count <= 0) if (count <= 0)