PIbd-21_Medvedkov_Coursach/ComputerShopContracts/ViewModels/ComponentViewModel.cs
2024-05-01 04:42:57 +04:00

23 lines
586 B
C#

using ComputerShopDataModels.Models;
using System.ComponentModel;
namespace ComputerShopContracts.ViewModels
{
public class ComponentViewModel : IComponentModel
{
public int Id { get; set; }
[DisplayName("Цена")]
public double Cost { get; set; }
[DisplayName("Имя комплектующего")]
public string ComponentName { get; set; } = string.Empty;
[DisplayName("Описание комплектующего")]
public string Description { get; set; } = string.Empty;
public int UserId { get; set; }
}
}