Bondarenko M.S. Lab Work 2 hard #12
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user