20 lines
527 B
C#
20 lines
527 B
C#
using System.ComponentModel;
|
|
using SushiBarContracts.Attributes;
|
|
using SushiBarDataModels.Models;
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
{
|
|
public class ComponentViewModel : IComponentModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
|
|
[Column(title: "Компонент", width: 50)]
|
|
public string ComponentName { get; set; } = string.Empty;
|
|
[DisplayName("Цена")]
|
|
|
|
[Column(title: "Цена", width: 30)]
|
|
public double Cost { get; set; }
|
|
}
|
|
}
|