19 lines
502 B
C#
19 lines
502 B
C#
using ComputerShopDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace ComputerShopContracts.ViewModels
|
|
{
|
|
public class AssemblyViewModel : IAssemblyModel
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
|
|
[DisplayName("Имя сборки")]
|
|
public string AssemblyName { get; set; } = string.Empty;
|
|
[DisplayName("Цена")]
|
|
public double Cost { get; set; }
|
|
public int UserId { get; set; }
|
|
public Dictionary<int, (IComponentModel, int)> AssemblyComponents { get; set; } = new();
|
|
}
|
|
}
|