public static void UpdateFromDTO(MessageWriteDTO messageDTO, Message message)
 {
     message.Text     = messageDTO.Text;
     message.Status   = messageDTO.Status;
     message.TopicId  = messageDTO.TopicId;
     message.AuthorId = messageDTO.AuthorId;
 }
 public static Message FromDTO(MessageWriteDTO messageDTO)
 {
     return(new Message
     {
         Id = messageDTO.Id,
         Text = messageDTO.Text,
         Status = messageDTO.Status,
         TopicId = messageDTO.TopicId,
         AuthorId = messageDTO.AuthorId
     });
 }