PIbd-22_Smirnov_A.A._Securi.../SecuritySystem/SecuritySystemContracts/ViewModels/SensorsViewModel.cs

25 lines
671 B
C#
Raw Normal View History

2024-05-07 15:10:34 +04:00
using SecuritySystemDataModels.Models;
using System.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2024-06-22 10:36:54 +04:00
using SecuritySystemContracts.Attributes;
2024-05-07 15:10:34 +04:00
namespace SecuritySystemContracts.ViewModels
{
2024-06-22 10:36:54 +04:00
//класс для отображения пользователю данных
public class SensorViewModel : ISensorModel
{
[Column(visible: false)]
public int Id { get; set; }
2024-05-07 15:10:34 +04:00
2024-06-22 10:36:54 +04:00
[Column(title: "Название датчика", width: 150)]
public string SensorName { get; set; } = string.Empty;
2024-05-07 15:10:34 +04:00
2024-06-22 10:36:54 +04:00
[Column(title: "Цена", width: 150)]
public double Cost { get; set; }
}
}