Mochalov D.V. LabWork02_Hard #6

Closed
b0n3l3sS wants to merge 39 commits from LabWork02_Hard into LabWork01_Hard
Showing only changes of commit 2036d05b3a - Show all commits

View File

@ -91,8 +91,11 @@ namespace LawFirmFileImplement.Models
Adress = model.Adress;
OpeningDate = model.OpeningDate;
MaxCountDocuments = model.MaxCountDocuments;
Documents = model.ShopDocuments.ToDictionary(x => x.Key, x => x.Value.Item2);
_shopDocuments = null;
if (model.ShopDocuments.Count > 0)
{
Documents = model.ShopDocuments.ToDictionary(x => x.Key, x => x.Value.Item2);
_shopDocuments = null;
}
}
public ShopViewModel GetViewModel => new()
{