From fe67f3f997f19f8eabca71a7de08b90a4406a403 Mon Sep 17 00:00:00 2001 From: maxnes3 <112558334+maxnes3@users.noreply.github.com> Date: Mon, 24 Apr 2023 17:28:51 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=81=D1=91=20=D0=B5=D1=89=D1=91=20?= =?UTF-8?q?=D0=BD=D0=BE=D1=80=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ComputersShop/ComputersShopFileImplement/Models/Shop.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ComputersShop/ComputersShopFileImplement/Models/Shop.cs b/ComputersShop/ComputersShopFileImplement/Models/Shop.cs index 750a7bf..29f7631 100644 --- a/ComputersShop/ComputersShopFileImplement/Models/Shop.cs +++ b/ComputersShop/ComputersShopFileImplement/Models/Shop.cs @@ -96,11 +96,11 @@ namespace ComputersShopFileImplement.Models public XElement GetXElement => new("Shop", new XAttribute("Id", Id), new XElement("ShopName", ShopName), - new XElement("Address", ShopAddress), + new XElement("ShopAddress", ShopAddress), new XElement("DateOpening", DateOpening.ToString()), new XElement("Capacity", Capacity.ToString()), - new XElement("Documents", ComputersCount.Select(x => - new XElement("Document", + new XElement("Сomputers", ComputersCount.Select(x => + new XElement("Сomputer", new XElement("Key", x.Key), new XElement("Value", x.Value))) .ToArray()));