CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/OrderViewModel.cs
Илья Федотов 7f9720200f fix Db models
2024-05-25 22:32:22 +04:00

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();
}
}