Computer_Hardware_Store/HardwareShop/HardwareShopContracts/ViewModels/ComponentViewModel.cs

23 lines
700 B
C#
Raw Permalink Normal View History

using HardwareShopDataModels.Models;
using System.ComponentModel;
namespace HardwareShopContracts.ViewModels
{
public class ComponentViewModel : IComponentModel
{
public int Id { get; set; }
[DisplayName("Компонент")]
public string ComponentName { get; set; } = string.Empty;
2023-04-06 21:18:30 +04:00
[DisplayName("Стоимость")]
public double Cost { get; set; }
[DisplayName("Дата создания")]
2023-04-06 21:18:30 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
public int UserId { get; set; }
2023-04-06 21:18:30 +04:00
public Dictionary<int, (IBuildModel, int)> ComponentBuilds
{
get;
set;
} = new();
}
}