23 lines
586 B
C#
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; }
|
|||
|
|
|||
|
}
|
|||
|
}
|