ПИбд-22 Петрушин Егор | Усложнённая Лабораторная №2 Юридическая фирма #10

Closed
Egor_Petrushin wants to merge 8 commits from Lab2_hard into Lab1_hard
Showing only changes of commit a956ac08f5 - Show all commits

View File

@ -94,12 +94,9 @@ namespace AbstractLawFirmFileImplement.Implements
var shopDocuments = source.Shops.SelectMany(shop => shop.ShopDocuments.Where(c => c.Value.Item1.Id == document.Id));
int countStore = 0;
int countStore = shopDocuments.Sum(it => it.Value.Item2);
foreach (var it in shopDocuments)
countStore += it.Value.Item2;
if (count > countStore)
if (count > countStore)
return false;
foreach (var shop in source.Shops)