вью модель для message

This commit is contained in:
Елена Бакальская 2024-05-04 18:49:53 +04:00
parent bfd83629c9
commit c06154b69a
2 changed files with 30 additions and 2 deletions

View File

@ -20,7 +20,5 @@ namespace SushiBarContracts.ViewModels
[DisplayName("Пароль")] [DisplayName("Пароль")]
public string Password { get; set; } = string.Empty; public string Password { get; set; } = string.Empty;
} }
} }

View File

@ -0,0 +1,30 @@
using SushiBarDataModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarContracts.ViewModels
{
public class MessageInfoViewModel : IMessageInfoModel
{
public string MessageId { get; set; } = string.Empty;
public int? ClientId { get; set; }
[DisplayName("Имя отправителя")]
public string SenderName { get; set; } = string.Empty;
[DisplayName("Дата получения")]
public DateTime DateDelivery { get; set; } = DateTime.Now;
[DisplayName("Предмет письма")]
public string Subject { get; set; } = string.Empty;
[DisplayName("Тело письма")]
public string Body { get; set; } = string.Empty;
}
}