CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/OrderViewModel.cs

36 lines
1.1 KiB
C#
Raw Normal View History

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
{
public int ID { get; set; }
2024-04-29 19:34:14 +04:00
[DisplayName("Клиент ID")]
public int UserID { get; set; }
2024-04-27 13:01:57 +04:00
[DisplayName("Сумма")]
public double Sum { get; set; }
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Стутус оплаты")]
public PaymeantOption PaymeantOption { get; set; } = PaymeantOption.Неизвестно;
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
[DisplayName("Дата выполнения")]
2024-04-29 01:28:41 +04:00
public DateTime? DateImplement { get; set; }
2024-04-27 13:01:57 +04:00
public Dictionary<int, (IProductModel, int)> ProductList { get; set; } = new();
}
}