PIbd21_Makarov_DV_FlowerShop/FlowerShop/FlowerShopContracts/ViewModels/MessageInfoViewModel.cs

24 lines
918 B
C#
Raw Normal View History

2024-05-16 17:03:51 +04:00
using FlowerShopContracts.Attributes;
using FlowerShopDataModels.Models;
2024-05-02 19:55:52 +04:00
namespace FlowerShopContracts.ViewModels
{
public class MessageInfoViewModel : IMessageInfoModel
{
2024-05-16 17:03:51 +04:00
[Column(visible: false)]
public int Id { get; set; }
[Column(visible: false)]
public string MessageId { get; set; } = string.Empty;
[Column(visible: false)]
public int? ClientId { get; set; }
[Column(title: "Отправитель" ,width: 150)]
2024-05-02 19:55:52 +04:00
public string SenderName { get; set; } = string.Empty;
2024-05-16 17:03:51 +04:00
[Column(title: "Дата доставки", width: 120)]
2024-05-02 19:55:52 +04:00
public DateTime DateDelivery { get; set; }
2024-05-16 17:03:51 +04:00
[Column(title: "Тема", width: 120)]
2024-05-02 19:55:52 +04:00
public string Subject { get; set; } = string.Empty;
2024-05-16 17:03:51 +04:00
[Column(title: "Содержание", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-05-02 19:55:52 +04:00
public string Body { get; set; } = string.Empty;
}
}