diff --git a/ConfectionaryFileImplement/Order.cs b/ConfectionaryFileImplement/Order.cs index d3067f1..8a00130 100644 --- a/ConfectionaryFileImplement/Order.cs +++ b/ConfectionaryFileImplement/Order.cs @@ -74,6 +74,7 @@ namespace ConfectioneryFileImplement.Models } public OrderViewModel GetViewModel => new() { + PastryName = DataFileSingleton.GetInstance().Pastries.FirstOrDefault(x => x.Id == PastryId)?.PastryName ?? string.Empty, PastryId = PastryId, Count = Count, Sum = Sum,