CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/ProductViewModel.cs

28 lines
773 B
C#
Raw Normal View History

2024-04-27 13:01:57 +04:00
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 ProductViewModel : IProductModel
{
//ID категории продукта (товара)
public int CategoryID { get; set; }
//ID продукта (товара)
public int ID { get; set; }
[DisplayName("Название товара")]
public string ProductName { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }
[DisplayName("Количество")]
public int Count { get; set; }
}
}