CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/OrderViewModel.cs
Илья Федотов aa1e2bf2e4 Pay&Report fix
2024-07-26 12:41:39 +04:00

29 lines
794 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
public OrderStatus Status { get; set; } = OrderStatus.Неоплачено;
}
}