ISEbd-21 Melnikov I. O. Lab work 02 Base #2
@ -38,6 +38,11 @@ namespace BlacksmithWorkshopFileImplement.Models
|
||||
{
|
||||
return null;
|
||||
}
|
||||
DateTime? dateImplement = null;
|
||||
if (element.Element("DateImplement")!.Value != "")
|
||||
{
|
||||
dateImplement = Convert.ToDateTime(element.Element("DateImplement")!.Value);
|
||||
}
|
||||
return new Order()
|
||||
{
|
||||
Id = Convert.ToInt32(element.Attribute("Id")!.Value),
|
||||
@ -46,7 +51,7 @@ namespace BlacksmithWorkshopFileImplement.Models
|
||||
Sum = Convert.ToDouble(element.Element("Sum")!.Value),
|
||||
Status = (OrderStatus)Convert.ToInt32(element.Element("Status")!.Value),
|
||||
DateCreate = Convert.ToDateTime(element.Element("DateCreate")!.Value),
|
||||
DateImplement = Convert.ToDateTime(element.Element("DateImplement")!.Value)
|
||||
DateImplement = dateImplement
|
||||
};
|
||||
}
|
||||
public void Update(OrderBindingModel? model)
|
||||
|
Loading…
Reference in New Issue
Block a user