2023-01-30 18:15:58 +04:00
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
2023-05-04 16:10:15 +04:00
|
|
|
|
using SushiBarContracts.Attributes;
|
2023-01-30 18:15:58 +04:00
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
|
|
|
{
|
2023-01-30 18:27:32 +04:00
|
|
|
|
public class SushiViewModel : ISushiModel
|
2023-01-30 18:15:58 +04:00
|
|
|
|
{
|
2023-05-04 16:10:15 +04:00
|
|
|
|
[Column(visible:false)]
|
2023-01-30 18:15:58 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2023-05-04 16:10:15 +04:00
|
|
|
|
[Column("Name of Product", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-01-30 18:27:32 +04:00
|
|
|
|
public string SushiName { get; set; } = string.Empty;
|
2023-01-30 18:15:58 +04:00
|
|
|
|
|
2023-05-04 16:10:15 +04:00
|
|
|
|
[Column("Cost", width:100)]
|
2023-01-30 18:15:58 +04:00
|
|
|
|
public double Price { get; set; }
|
2023-05-04 16:10:15 +04:00
|
|
|
|
[Column(visible:false)]
|
2023-01-30 18:27:32 +04:00
|
|
|
|
public Dictionary<int, (IComponentModel, int)> SushiComponents { get; set; } = new();
|
2023-01-30 18:15:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|