2023-04-23 23:23:08 +04:00
|
|
|
|
using FlowerShopContracts.Attributes;
|
|
|
|
|
using FlowerShopDataModels.Models;
|
2023-01-29 19:21:11 +04:00
|
|
|
|
|
|
|
|
|
namespace FlowerShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class BouquetViewModel : IBouquetModel
|
|
|
|
|
{
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Название букета", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public string BouquetName { get; set; } = string.Empty;
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Цена", width: 150)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public double Price { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public Dictionary<int, (IComponentModel, int)> BouquetComponents { get; set; } = new();
|
|
|
|
|
}
|
|
|
|
|
}
|