PIbd-21_RazubaevSM_Plumbing.../PlumbingRepair/PlumbingRepairContracts/ViewModels/ComponentViewModel.cs
2024-05-16 19:02:46 +04:00

18 lines
630 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, formattedNumber: true)]
public double Cost { get; set; }
}
}