Mochalov D.V. LabWork02_Hard #6
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user