25 lines
968 B
C#
Raw Normal View History

2024-05-20 22:12:07 +04:00
using CarRepairShopContracts.Attributes;
using CarRepairShopDataModels;
using System.ComponentModel;
namespace CarRepairShopContracts.ViewModels
{
public class MessageInfoViewModel : IMessageInfoModel
{
2024-05-20 22:12:07 +04:00
[Column(visible: false)]
public string MessageId { get; set; } = string.Empty;
2024-05-20 22:12:07 +04:00
[Column(visible: false)]
public int? ClientId { get; set; }
2024-05-20 22:12:07 +04:00
[Column(title: "Отправитель", gridViewAutoSize: GridViewAutoSize.DisplayedCells, isUseAutoSize: true)]
public string SenderName { get; set; } = string.Empty;
2024-05-20 22:12:07 +04:00
[Column(title: "Дата письма", width: 100)]
public DateTime DateDelivery { get; set; }
2024-05-20 22:12:07 +04:00
[Column(title: "Заголовок", width: 150)]
public string Subject { get; set; } = string.Empty;
2024-05-20 22:12:07 +04:00
[Column(title: "Текст", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string Body { get; set; } = string.Empty;
2024-05-20 22:12:07 +04:00
[Column(visible: false)]
public int Id => throw new NotImplementedException();
}
}