16 lines
496 B
C#
16 lines
496 B
C#
using SushiBarContracts.Attributes;
|
|
using SushiBarDataModels.Models;
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
{
|
|
public class ComponentViewModel : IComponentModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
[Column(title: "Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string ComponentName { get; set; } = string.Empty;
|
|
[Column(title: "Цена", width: 80)]
|
|
public double Cost { get; set; }
|
|
}
|
|
}
|