19 lines
545 B
C#
19 lines
545 B
C#
using ShipyardDataModels.Models;
|
|
using System.ComponentModel;
|
|
namespace ShipyardContracts.ViewModels
|
|
{
|
|
public class ShipViewModel : IShipModel
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("Название изделия")]
|
|
public string ShipName { get; set; } = string.Empty;
|
|
[DisplayName("Цена")]
|
|
public double Price { get; set; }
|
|
public Dictionary<int, (IComponentModel, int)> ShipComponents
|
|
{
|
|
get;
|
|
set;
|
|
} = new();
|
|
}
|
|
}
|