16 lines
519 B
C#
16 lines
519 B
C#
using ComputerHardwareStoreDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace ComputerHardwareStoreContracts.ViewModels
|
|
{
|
|
public class OrderViewModel : IOrderModel
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("Стоимость")]
|
|
public double Cost { get; set; }
|
|
[DisplayName("Дата создания")]
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
public Dictionary<int, (IProductModel, int)> OrderProduct { get; set; } = new();
|
|
}
|
|
}
|