2024-04-27 13:01:57 +04:00
|
|
|
|
using ElectronicsShopDataModels.Enums;
|
|
|
|
|
using ElectronicsShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ElectronicsShopContracts.BindingModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderBindingModel : IOrderModel
|
|
|
|
|
{
|
|
|
|
|
public int ID { get; set; }
|
2024-04-29 19:34:14 +04:00
|
|
|
|
public int UserID { get; set; }
|
2024-04-27 13:01:57 +04:00
|
|
|
|
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
|
|
|
|
|
public PaymeantOption PaymeantOption { get; set; } = PaymeantOption.Неизвестно;
|
|
|
|
|
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|