PIbd-22_Shabunov_O.A._SushiBar/SushiBarContracts/ViewModels/ChequeViewModel.cs

29 lines
761 B
C#
Raw Permalink Normal View History

2024-05-15 21:14:04 +04:00
using System.ComponentModel;
namespace SushiBarContracts.ViewModels
{
public class ChequeViewModel
{
2024-05-24 01:56:34 +04:00
[DisplayName("Номер")]
2024-05-15 21:14:04 +04:00
public int Id { get; set; }
public int? CustomerId { get; set; }
[DisplayName("Покупатель")]
public string? CustomerFio { get; set; } = string.Empty;
public Dictionary<int, ChequeItemViewModel> ChequeItems { get; set; } = new();
[DisplayName("Дата заказа")]
public DateTime OrderDate { get; set; }
[DisplayName("Сумма заказа")]
public double TotalSum { get; set; }
public int? PromotionId { get; set; }
[DisplayName("Скидка")]
public float? Discount { get; set; }
}
}