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)