ПИбд-23 Юнусов Нияз Наилевич Лабораторная работа №5 усложненная #13

Closed
Yunusov_Niyaz wants to merge 15 commits from Lab5_Hard into Lab5
Showing only changes of commit 93b92ab4b0 - Show all commits

View File

@ -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)