CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/OrderViewModel.cs

34 lines
1.0 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; }
[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();
}
}