28 lines
716 B
C#
28 lines
716 B
C#
using ElectronicsShopDataModels.Enums;
|
|
using ElectronicsShopDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ElectronicsShopContracts.ViewModels
|
|
{
|
|
public class OrderViewModel : IOrderModel
|
|
{
|
|
public int ID { get; set; }
|
|
|
|
public int ClientID { get; set; }
|
|
|
|
[DisplayName("Дата заказа")]
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
[DisplayName("Сумма заказа")]
|
|
public double Sum { get; set; }
|
|
|
|
[DisplayName("Список товаров")]
|
|
public Dictionary<int, (IProductModel, int)> ProductList { get; set; } = new();
|
|
}
|
|
}
|