This commit is contained in:
Данила Мочалов 2023-03-12 14:58:17 +04:00
parent 27bd7178b1
commit 2036d05b3a

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()
{