2024-03-30 14:30:43 +04:00
|
|
|
|
using BarDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BarContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class CocktailViewModel : ICocktailModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2024-03-30 14:56:54 +04:00
|
|
|
|
[DisplayName("Название коктейля")]
|
2024-03-30 14:30:43 +04:00
|
|
|
|
public string CocktailName { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Цена")]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> CocktailComponents
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
|
|
|
|
}
|