2024-04-27 13:01:57 +04:00
|
|
|
|
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
|
|
|
|
|
{
|
2024-05-22 23:00:35 +04:00
|
|
|
|
public int ID { get; set; }
|
2024-04-27 13:01:57 +04:00
|
|
|
|
|
2024-05-22 23:00:35 +04:00
|
|
|
|
public int ClientID { get; set; }
|
2024-04-27 13:01:57 +04:00
|
|
|
|
|
2024-05-22 23:00:35 +04:00
|
|
|
|
[DisplayName("Дата заказа")]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2024-04-27 13:01:57 +04:00
|
|
|
|
|
2024-05-22 23:00:35 +04:00
|
|
|
|
[DisplayName("Сумма заказа")]
|
|
|
|
|
public double Sum { get; set; }
|
2024-04-27 13:01:57 +04:00
|
|
|
|
|
2024-05-25 22:32:22 +04:00
|
|
|
|
[DisplayName("Список товаров")]
|
2024-04-27 13:01:57 +04:00
|
|
|
|
public Dictionary<int, (IProductModel, int)> ProductList { get; set; } = new();
|
2024-05-19 17:52:59 +04:00
|
|
|
|
}
|
2024-04-27 13:01:57 +04:00
|
|
|
|
}
|