Mochalov D.V. LabWork02_Hard #6

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

View File

@ -63,7 +63,7 @@ namespace LawFirmFileImplement.Models
Count = Convert.ToInt32(element.Element("Count")!.Value),
Status = (OrderStatus)Enum.Parse(typeof(OrderStatus), element.Element("Status")!.Value),
DateCreate = Convert.ToDateTime(element.Element("DateCreate")!.Value),
DateImplement = Convert.ToDateTime(element.Element("DateCreate")!.Value)
DateImplement = string.IsNullOrEmpty(element.Element("DateImplement")!.Value) ? null : Convert.ToDateTime(element.Element("DateImplement")!.Value)
};
}