PIbd-22_Chernyshev_Shabunov.../ComputerShopContracts/ViewModels/AssemblyViewModel.cs

24 lines
606 B
C#

using ComputerShopDataModels.Models;
using System.ComponentModel;
namespace ComputerShopContracts.ViewModels
{
public class AssemblyViewModel : IAssemblyModel
{
public int Id { get; set; }
public int UserId { get; set; }
[DisplayName("Название сборки")]
public string AssemblyName { get; set; } = string.Empty;
[DisplayName("Стоимость")]
public double Cost { get; set; }
[DisplayName("Категория")]
public string Category { get; set; } = string.Empty;
public Dictionary<int, (IComponentModel, int)> AssemblyComponents { get; set; } = new();
}
}