From c932df1c723e9aa28ca5bb412cd75a4208d43e41 Mon Sep 17 00:00:00 2001 From: Salikh Date: Sat, 25 May 2024 12:11:36 +0400 Subject: [PATCH] commit 6 --- .../Models/MessageInfo.cs | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/MotorPlant/MotorPlantDatabaseImplement/Models/MessageInfo.cs b/MotorPlant/MotorPlantDatabaseImplement/Models/MessageInfo.cs index 4592e4d..8847af7 100644 --- a/MotorPlant/MotorPlantDatabaseImplement/Models/MessageInfo.cs +++ b/MotorPlant/MotorPlantDatabaseImplement/Models/MessageInfo.cs @@ -9,35 +9,35 @@ namespace MotorPlantDatabaseImplement.Models { public class MessageInfo : IMessageInfoModel { - [NotMapped] - public int Id { get; private set; } + [NotMapped] + public int Id { get; private set; } - [DataMember] - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public string MessageId { get; set; } = string.Empty; + [DataMember] + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public string MessageId { get; set; } = string.Empty; - [DataMember] - public int? ClientId { get; set; } + public int? ClientId { get; set; } - public virtual Client? Client { get; set; } + public virtual Client? Client { get; set; } - [DataMember] - [Required] - public string SenderName { get; set; } = string.Empty; + [DataMember] + [Required] + public string SenderName { get; set; } = string.Empty; - [DataMember] - [Required] - public DateTime DateDelivery { get; set; } + [DataMember] + [Required] + public DateTime DateDelivery { get; set; } - [Required] - public string Subject { get; set; } = string.Empty; + [DataMember] + [Required] + public string Subject { get; set; } = string.Empty; - [DataMember] - [Required] - public string Body { get; set; } = string.Empty; + [DataMember] + [Required] + public string Body { get; set; } = string.Empty; - public static MessageInfo? Create(MessageInfoBindingModel? model) + public static MessageInfo? Create(MessageInfoBindingModel? model) { if (model == null) {