Сдано
This commit is contained in:
parent
8f116075d8
commit
93b92ab4b0
@ -125,8 +125,7 @@ namespace CarRepairShopDatabaseImplement.Implements
|
|||||||
foreach (var el in context.ShopRepairs.Where(x => x.RepairId == model.Id))
|
foreach (var el in context.ShopRepairs.Where(x => x.RepairId == model.Id))
|
||||||
{
|
{
|
||||||
int dif = count;
|
int dif = count;
|
||||||
if (el.Count < dif)
|
if (el.Count < dif) dif = el.Count;
|
||||||
dif = el.Count;
|
|
||||||
el.Count -= dif;
|
el.Count -= dif;
|
||||||
count -= dif;
|
count -= dif;
|
||||||
if (el.Count == 0)
|
if (el.Count == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user