16 lines
533 B
C#
16 lines
533 B
C#
using SushiBarContracts.Attributes;
|
|
using SushiBarDataModels.Models;
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
{
|
|
public class IngredientViewModel : IIngredientModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
[Column(title: "Ингредиент", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string IngredientName { get; set; } = string.Empty;
|
|
[Column(title: "Цена", width: 150, format: "c2")]
|
|
public double Cost { get; set; }
|
|
}
|
|
}
|