From b22d11075225cb08115e6c78d80888b1cb6911ef Mon Sep 17 00:00:00 2001 From: Factorino73 Date: Mon, 25 Mar 2024 10:05:23 +0400 Subject: [PATCH] Fix --- .../Implements/ShopStorage.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)