PIbd-21_Alekseev_I.S._Confe.../Confectionery/ConfectioneryContracts/ViewModels/PastryViewModel.cs

31 lines
877 B
C#
Raw Normal View History

2024-06-18 10:22:44 +04:00
using ConfectioneryContracts.Attributes;
using ConfectioneryDataModels.Models;
2024-03-23 19:50:45 +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 PastryViewModel : IPastryModel
{
2024-06-18 10:22:44 +04:00
[Column(visible: false)]
2024-03-23 19:50:45 +04:00
public int Id { get; set; }
2024-06-18 10:22:44 +04:00
[Column(title: "Название кондитерского изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-03-23 19:50:45 +04:00
public string PastryName { get; set; } = string.Empty;
2024-06-18 10:22:44 +04:00
[Column(title: "Цена", width: 150)]
2024-03-23 19:50:45 +04:00
public double Price { get; set; }
2024-06-18 10:22:44 +04:00
[Column(visible: false)]
2024-03-23 19:50:45 +04:00
public Dictionary<int, (IComponentModel, int)> PastryComponents
{
get;
set;
} = new();
}
}