CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/PaymeantViewModel.cs
Илья Федотов adaa621ff6 беда
2024-07-24 13:02:15 +04:00

32 lines
918 B
C#
Raw 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 PaymeantViewModel : IPaymentModel {
public int ID { get; set; }
public int OrderID { get; set; }
[DisplayName("Cумма оплаты продукта")]
public double SumPayment { get; set; }
[DisplayName("Статус оплаты")]
public PaymeantOption PayOption { get; set; } = PaymeantOption.Неоплачено;
[DisplayName("Клиент")]
public int ClientID { get; set; }
public DateTime DatePaymeant { get; set; }
[DisplayName("Список оплаченных товаров")]
public Dictionary<int, (IProductModel, int)> PayProductList { get; set; } = new();
}
}