29 lines
775 B
C#
Raw Normal View History

using AutomobilePlantDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
2023-05-15 21:17:32 +03:00
using AutomobilePlantContracts.Attributes;
namespace AutomobilePlantContracts.ViewModel
{
2023-04-19 15:41:28 +03:00
public class CarViewModel : ICarModel
{
2023-05-15 21:17:32 +03:00
[Column(visible: false)]
public int Id { get; set; }
2023-05-15 21:17:32 +03:00
[Column(title: "Название", width: 150)]
2023-04-19 15:41:28 +03:00
public string CarName { get; set; } = string.Empty;
2023-05-15 21:17:32 +03:00
[Column(title: "Цена", width: 50)]
public double Price { get; set; }
2023-05-15 21:17:32 +03:00
[Column(visible: false)]
2023-04-19 15:41:28 +03:00
public Dictionary<int, (IComponentModel, int)> CarComponents
{
get;
set;
} = new();
}
}