мелкие правки

This commit is contained in:
gg12 darfren 2024-02-24 15:53:08 +04:00
parent fdf212256c
commit bbf916e199

View File

@ -61,7 +61,7 @@ namespace IceCreamShopFileImplement.Models
IceCreamName = element.Element("IceCreamName")!.Value,
Price = Convert.ToDouble(element.Element("Price")!.Value),
Components =
element.Element("IceCreamComponents")!.Elements("IceCreamComponents")
element.Element("IceCreamComponents")!.Elements("IceCreamComponent")
.ToDictionary(x =>
Convert.ToInt32(x.Element("Key")?.Value), x =>
Convert.ToInt32(x.Element("Value")?.Value))