2023-05-14 00:56:36 +04:00
|
|
|
|
using ConfectioneryContracts.Attributes;
|
|
|
|
|
using ConfectioneryDataModels.Models;
|
2023-02-06 11:15:27 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ConfectioneryContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class IngredientViewModel : IIngredientModel
|
|
|
|
|
{
|
2023-05-14 00:56:36 +04:00
|
|
|
|
[Column(visible:false)]
|
2023-02-06 11:15:27 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-05-14 00:56:36 +04:00
|
|
|
|
[Column(title:"Название ингредиента", gridViewAutoSize:GridViewAutoSize.Fill, isUseAutoSize:true)]
|
2023-02-06 11:15:27 +04:00
|
|
|
|
public string IngredientName { get; set; } = string.Empty;
|
2023-05-14 00:56:36 +04:00
|
|
|
|
[Column(title:"Цена", width:50)]
|
2023-02-06 11:15:27 +04:00
|
|
|
|
public double Cost { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|