18 lines
637 B
C#
18 lines
637 B
C#
using ComputerHardwareStoreDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace ComputerHardwareStoreContracts.ViewModels
|
|
{
|
|
public class BuildViewModel : IBuildModel
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("Название сборки")]
|
|
public string Name { get; set; } = string.Empty;
|
|
[DisplayName("Стоимость")]
|
|
public double Price { get; set; }
|
|
public IVendorModel Vendor { get; set; }
|
|
public Dictionary<int, (IComponentModel, int)> BuildComponents { get; set; } = new();
|
|
public List<ICommentModel> Comments { get; set; } = new();
|
|
}
|
|
}
|