и ещё отступы
This commit is contained in:
parent
3b425b3f6f
commit
6f0ac07354
@ -9,8 +9,8 @@ namespace PizzeriaFileImplement.Models
|
||||
public class Order : IOrderModel
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
public int ClientId { get; private set; }
|
||||
public int PizzaId { get; private set; }
|
||||
public int ClientId { get; private set; }
|
||||
public int PizzaId { get; private set; }
|
||||
public int Count { get; private set; }
|
||||
public double Sum { get; private set; }
|
||||
public OrderStatus Status { get; private set; } = OrderStatus.Неизвестен;
|
||||
@ -27,8 +27,8 @@ namespace PizzeriaFileImplement.Models
|
||||
{
|
||||
Id = model.Id,
|
||||
PizzaId = model.PizzaId,
|
||||
ClientId = model.ClientId,
|
||||
Count = model.Count,
|
||||
ClientId = model.ClientId,
|
||||
Count = model.Count,
|
||||
Sum = model.Sum,
|
||||
Status = model.Status,
|
||||
DateCreate = model.DateCreate,
|
||||
@ -47,8 +47,8 @@ namespace PizzeriaFileImplement.Models
|
||||
{
|
||||
Id = Convert.ToInt32(element.Attribute("Id")!.Value),
|
||||
PizzaId = Convert.ToInt32(element.Element("PizzaId")!.Value),
|
||||
ClientId = Convert.ToInt32(element.Element("ClientId")!.Value),
|
||||
Count = Convert.ToInt32(element.Element("Count")!.Value),
|
||||
ClientId = Convert.ToInt32(element.Element("ClientId")!.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)),
|
||||
DateCreate = Convert.ToDateTime(element.Element("DateCreate")!.Value),
|
||||
@ -71,8 +71,8 @@ namespace PizzeriaFileImplement.Models
|
||||
{
|
||||
Id = Id,
|
||||
PizzaId = PizzaId,
|
||||
ClientId = ClientId,
|
||||
Count = Count,
|
||||
ClientId = ClientId,
|
||||
Count = Count,
|
||||
Sum = Sum,
|
||||
Status = Status,
|
||||
DateCreate = DateCreate,
|
||||
@ -82,8 +82,8 @@ namespace PizzeriaFileImplement.Models
|
||||
public XElement GetXElement => new("Order",
|
||||
new XAttribute("Id", Id),
|
||||
new XElement("PizzaId", PizzaId.ToString()),
|
||||
new XElement("ClientId", ClientId.ToString()),
|
||||
new XElement("Count", Count.ToString()),
|
||||
new XElement("ClientId", ClientId.ToString()),
|
||||
new XElement("Count", Count.ToString()),
|
||||
new XElement("Sum", Sum.ToString()),
|
||||
new XElement("Status", Status.ToString()),
|
||||
new XElement("DateCreate", DateCreate.ToString()),
|
||||
|
Loading…
Reference in New Issue
Block a user