всё ещё нормально не работает

This commit is contained in:
maxnes3 2023-04-24 17:28:51 +04:00
parent 0626e3d50a
commit fe67f3f997

View File

@ -96,11 +96,11 @@ namespace ComputersShopFileImplement.Models
public XElement GetXElement => new("Shop", public XElement GetXElement => new("Shop",
new XAttribute("Id", Id), new XAttribute("Id", Id),
new XElement("ShopName", ShopName), new XElement("ShopName", ShopName),
new XElement("Address", ShopAddress), new XElement("ShopAddress", ShopAddress),
new XElement("DateOpening", DateOpening.ToString()), new XElement("DateOpening", DateOpening.ToString()),
new XElement("Capacity", Capacity.ToString()), new XElement("Capacity", Capacity.ToString()),
new XElement("Documents", ComputersCount.Select(x => new XElement("Сomputers", ComputersCount.Select(x =>
new XElement("Document", new XElement("Сomputer",
new XElement("Key", x.Key), new XElement("Key", x.Key),
new XElement("Value", x.Value))) new XElement("Value", x.Value)))
.ToArray())); .ToArray()));