AccountingWarehouseProducts.../AccountingWarehouseProducts/AccountingWarehouseProductsContracts/ViewModels/ProductViewModel.cs

28 lines
790 B
C#

using AccountingWarehouseProductsDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AccountingWarehouseProductsContracts.ViewModels
{
public class ProductViewModel : IProductModel
{
public int Id { get; set; }
[DisplayName("Название продукта")]
public string ProductName { get; set; } = string.Empty;
[DisplayName("Цена продукта")]
public double Cost { get; set; }
[DisplayName("Срок годности")]
public DateTime? ExpirationDate { get; set; }
[DisplayName("Категория")]
public string Category { get; set; } = string.Empty;
}
}