18 lines
607 B
C#
18 lines
607 B
C#
using PlumbingRepairContracts.Attributes;
|
|
using PlumbingRepairDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace PlumbingRepairContracts.ViewModels
|
|
{
|
|
public class ComponentViewModel : IComponentModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
|
|
[Column(title: "Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string ComponentName { get; set; } = string.Empty;
|
|
|
|
[Column(title: "Цена", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public double Cost { get; set; }
|
|
}
|
|
} |