27 lines
964 B
C#
27 lines
964 B
C#
using ComputerHardwareStoreDataModels.Enums;
|
|
using ComputerHardwareStoreDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace ComputerHardwareStoreContracts.ViewModels
|
|
{
|
|
public class OrderViewModel : IOrderModel
|
|
{
|
|
[DisplayName("Номер")]
|
|
public int Id { get; set; }
|
|
public int ProductId { get; set; }
|
|
[DisplayName("Товар")]
|
|
public string ProductName { get; set; } = string.Empty;
|
|
[DisplayName("Количество")]
|
|
public int Count { get; set; }
|
|
[DisplayName("Сумма")]
|
|
public double Sum { get; set; }
|
|
[DisplayName("Статус")]
|
|
public OrderStatus Status { get; set; }
|
|
[DisplayName("Дата создания")]
|
|
public DateTime DateCreate { get; set; }
|
|
[DisplayName("Дата выполнения")]
|
|
public DateTime? DateImplement { get; set; }
|
|
// public Dictionary<int, (IProductModel, int)> OrderProducts { get; set; } = new();
|
|
}
|
|
}
|