реализовано вычисляемое поле PastryName

This commit is contained in:
Данияр Аглиуллов 2023-02-28 21:59:49 +04:00
parent 3b796baf01
commit 746f5be7a4

View File

@ -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,