From 93b92ab4b09947a30433fbfe4aa7f53ec772379c Mon Sep 17 00:00:00 2001 From: Yunusov_Niyaz Date: Wed, 27 Mar 2024 16:35:29 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B0=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CarRepairShopDatabaseImplement/Implements/ShopStorage.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CarRepairShop/CarRepairShopDatabaseImplement/Implements/ShopStorage.cs b/CarRepairShop/CarRepairShopDatabaseImplement/Implements/ShopStorage.cs index df9821b..2e9ae97 100644 --- a/CarRepairShop/CarRepairShopDatabaseImplement/Implements/ShopStorage.cs +++ b/CarRepairShop/CarRepairShopDatabaseImplement/Implements/ShopStorage.cs @@ -125,8 +125,7 @@ namespace CarRepairShopDatabaseImplement.Implements foreach (var el in context.ShopRepairs.Where(x => x.RepairId == model.Id)) { int dif = count; - if (el.Count < dif) - dif = el.Count; + if (el.Count < dif) dif = el.Count; el.Count -= dif; count -= dif; if (el.Count == 0)