CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/PaymeantViewModel.cs

32 lines
918 B
C#
Raw Normal View History

using ElectronicsShopDataModels.Enums;
using ElectronicsShopDataModels.Models;
2024-05-22 23:00:35 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicsShopContracts.ViewModels
{
2024-05-26 18:12:25 +04:00
public class PaymeantViewModel : IPaymentModel {
2024-05-22 23:00:35 +04:00
public int ID { get; set; }
public int OrderID { get; set; }
[DisplayName("Cумма оплаты продукта")]
public double SumPayment { get; set; }
[DisplayName("Статус оплаты")]
public PaymeantOption PayOption { get; set; } = PaymeantOption.Неоплачено;
2024-06-01 05:23:37 +04:00
[DisplayName("Клиент")]
public int ClientID { get; set; }
2024-06-02 18:37:47 +04:00
public DateTime DatePaymeant { get; set; }
2024-07-24 13:02:15 +04:00
[DisplayName("Список оплаченных товаров")]
public Dictionary<int, (IProductModel, int)> PayProductList { get; set; } = new();
}
2024-05-22 23:00:35 +04:00
}