мелкие правки
This commit is contained in:
parent
fdf212256c
commit
bbf916e199
@ -61,7 +61,7 @@ namespace IceCreamShopFileImplement.Models
|
|||||||
IceCreamName = element.Element("IceCreamName")!.Value,
|
IceCreamName = element.Element("IceCreamName")!.Value,
|
||||||
Price = Convert.ToDouble(element.Element("Price")!.Value),
|
Price = Convert.ToDouble(element.Element("Price")!.Value),
|
||||||
Components =
|
Components =
|
||||||
element.Element("IceCreamComponents")!.Elements("IceCreamComponents")
|
element.Element("IceCreamComponents")!.Elements("IceCreamComponent")
|
||||||
.ToDictionary(x =>
|
.ToDictionary(x =>
|
||||||
Convert.ToInt32(x.Element("Key")?.Value), x =>
|
Convert.ToInt32(x.Element("Key")?.Value), x =>
|
||||||
Convert.ToInt32(x.Element("Value")?.Value))
|
Convert.ToInt32(x.Element("Value")?.Value))
|
||||||
|
Loading…
Reference in New Issue
Block a user