CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/ProductViewModel.cs

27 lines
736 B
C#
Raw Normal View History

2024-05-22 23:00:35 +04:00
using ElectronicsShopDataModels.Enums;
using ElectronicsShopDataModels.Models;
2024-04-27 13:01:57 +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-22 23:00:35 +04:00
public class ProductViewModel : IProductModel {
public int ID { get; set; }
2024-04-27 13:01:57 +04:00
2024-05-22 23:00:35 +04:00
public int CostItemID { get; set; }
2024-04-27 13:01:57 +04:00
2024-05-22 23:00:35 +04:00
[DisplayName("Название продукта")]
public string ProductName { get; set; } = string.Empty;
[DisplayName("Стоимость продукта")]
public double Price { get; set; }
[DisplayName("Статус оплаты")]
2024-05-25 13:06:38 +04:00
public PaymeantOption PayOption { get; set; } = PaymeantOption.Неизвестно;
2024-05-22 23:00:35 +04:00
}
2024-04-27 13:01:57 +04:00
}