18 lines
482 B
C#
18 lines
482 B
C#
|
using SushiBarDataModels.Models;
|
|||
|
using System.ComponentModel;
|
|||
|
|
|||
|
namespace SushiBarContracts.ViewModels
|
|||
|
{
|
|||
|
public class ProductViewModel : IProductModel
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
|
|||
|
[DisplayName("Name of Product")]
|
|||
|
public string ProductName { get; set; } = string.Empty;
|
|||
|
|
|||
|
[DisplayName("Cost")]
|
|||
|
public double Price { get; set; }
|
|||
|
public Dictionary<int, (IComponentModel, int)> ProductComponents { get; set; } = new();
|
|||
|
}
|
|||
|
}
|