2023-01-30 18:15:58 +04:00
|
|
|
|
using SushiBarDataModels.Models;
|
2023-05-04 16:10:15 +04:00
|
|
|
|
using SushiBarContracts.Attributes;
|
2023-01-30 18:15:58 +04:00
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ComponentViewModel : IComponentModel
|
|
|
|
|
{
|
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 Component", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-01-30 18:15:58 +04:00
|
|
|
|
public string ComponentName { get; set; } = string.Empty;
|
2023-05-04 16:10:15 +04:00
|
|
|
|
[Column("Cost", width: 80)]
|
2023-01-30 18:15:58 +04:00
|
|
|
|
public double Cost { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|