diff --git a/CarpentryWorkshopFileImplement/Models/Order.cs b/CarpentryWorkshopFileImplement/Models/Order.cs index c38455c..6365f03 100644 --- a/CarpentryWorkshopFileImplement/Models/Order.cs +++ b/CarpentryWorkshopFileImplement/Models/Order.cs @@ -22,8 +22,6 @@ namespace CarpentryWorkshopFileImplement.Models public int ClientId { get; private set; } - public string WoodName { get; private set; } = string.Empty; - public int Count { get; private set; } public double Sum { get; private set; } @@ -47,7 +45,6 @@ namespace CarpentryWorkshopFileImplement.Models Id = model.Id, ImplementerId = model.ImplementerId, WoodId = model.WoodId, - WoodName = model.WoodName, ClientId = model.ClientId, Count = model.Count, Sum = model.Sum, @@ -70,7 +67,6 @@ namespace CarpentryWorkshopFileImplement.Models ImplementerId = Convert.ToInt32(element.Element("ImplementerId")!.Value), WoodId = Convert.ToInt32(element.Element("WoodId")!.Value), ClientId = Convert.ToInt32(element.Element("ClientId")!.Value), - WoodName = element.Element("WoodName")!.Value, Count = Convert.ToInt32(element.Element("Count")!.Value), Sum = Convert.ToDouble(element.Element("Sum")!.Value), Status = (OrderStatus)Enum.Parse(typeof(OrderStatus), element.Element("Status")!.Value), @@ -99,7 +95,6 @@ namespace CarpentryWorkshopFileImplement.Models ImplementerId = ImplementerId, WoodId = WoodId, ClientId = ClientId, - WoodName = WoodName, Count = Count, Sum = Sum, Status = Status, @@ -109,7 +104,6 @@ namespace CarpentryWorkshopFileImplement.Models public XElement GetXElement => new("Order", new XAttribute("Id", Id), - new XElement("WoodName", WoodName), new XElement("WoodId", WoodId.ToString()), new XElement("ClientId", ClientId.ToString()), new XElement("ImplementerId", ImplementerId.ToString()),