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()));