From d7b015b447718e237903321a22f19ea5bcccc26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=B5=D1=80?= =?UTF-8?q?=D0=B3=D1=83=D0=BD=D0=BE=D0=B2?= Date: Thu, 27 Apr 2023 23:29:50 +0400 Subject: [PATCH] fix --- GiftShop/GiftShopFileImplement/Models/Order.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/GiftShop/GiftShopFileImplement/Models/Order.cs b/GiftShop/GiftShopFileImplement/Models/Order.cs index dfe532d..b44f984 100644 --- a/GiftShop/GiftShopFileImplement/Models/Order.cs +++ b/GiftShop/GiftShopFileImplement/Models/Order.cs @@ -10,8 +10,6 @@ namespace GiftShopFileImplement.Models { public int GiftId { get; private set; } - public string GiftName { get; private set; } - public int Count { get; private set; } public double Sum { get; private set; } @@ -34,7 +32,6 @@ namespace GiftShopFileImplement.Models { Id = model.Id, GiftId = model.GiftId, - GiftName = model.GiftName, Count = model.Count, Sum = model.Sum, Status = model.Status, @@ -53,7 +50,6 @@ namespace GiftShopFileImplement.Models { Id = Convert.ToInt32(element.Attribute("Id")!.Value), GiftId = Convert.ToInt32(element.Element("GiftId")!.Value), - GiftName = element.Element("GiftName")!.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), @@ -73,7 +69,6 @@ namespace GiftShopFileImplement.Models return; } GiftId = model.GiftId; - GiftName = model.GiftName; Count = model.Count; Sum = model.Sum; Status = model.Status; @@ -85,7 +80,6 @@ namespace GiftShopFileImplement.Models { Id = Id, GiftId = GiftId, - GiftName = GiftName, Count = Count, Sum = Sum, Status = Status, @@ -95,7 +89,6 @@ namespace GiftShopFileImplement.Models public XElement GetXElement => new("Order", new XAttribute("Id", Id), - new XElement("GiftName", GiftName), new XElement("GiftId", GiftId.ToString()), new XElement("Count", Count.ToString()), new XElement("Sum", Sum.ToString()),