diff --git a/AircraftPlant/AircraftPlantDatabaseImplement/Implements/ShopStorage.cs b/AircraftPlant/AircraftPlantDatabaseImplement/Implements/ShopStorage.cs index ef8750a..5dedc8d 100644 --- a/AircraftPlant/AircraftPlantDatabaseImplement/Implements/ShopStorage.cs +++ b/AircraftPlant/AircraftPlantDatabaseImplement/Implements/ShopStorage.cs @@ -180,10 +180,14 @@ namespace AircraftPlantDatabaseImplement.Implements { shop.ShopPlanes[model.Id] = (shop.ShopPlanes[model.Id].Item1, countInCurrentShop - count); count = 0; - shop.Update(new ShopBindingModel + shop.UpdatePlanes(context, new ShopBindingModel { Id = shop.Id, - ShopPlanes = shop.ShopPlanes + ShopName = shop.ShopName, + Address = shop.Address, + DateOpening = shop.DateOpening, + ShopPlanes = shop.ShopPlanes, + MaxPlanes = shop.MaxPlanes }); } if (count <= 0)