From 6f0ac0735490bbe7bd37c23bc7ebca046bd9f6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D1=8F=D1=87=D0=B5=D1=81=D0=BB=D0=B0=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Fri, 22 Mar 2024 10:09:56 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=20=D0=B5=D1=89=D1=91=20=D0=BE=D1=82?= =?UTF-8?q?=D1=81=D1=82=D1=83=D0=BF=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PizzeriaFileImplement/Models/Order.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Pizzeria/PizzeriaFileImplement/Models/Order.cs b/Pizzeria/PizzeriaFileImplement/Models/Order.cs index 73d5622..1f5dbd2 100644 --- a/Pizzeria/PizzeriaFileImplement/Models/Order.cs +++ b/Pizzeria/PizzeriaFileImplement/Models/Order.cs @@ -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()),