public async Task <IActionResult> Post([FromBody] SendMessageServiceRequest request)
        {
            var fromUserName = User.Claims.First(c => c.Type == "UserName").Value;

            request.From = fromUserName;
            var result = await _mediator.Send(new SendMessageCommand(request));

            return(Ok(result));
        }
 public SendMessageCommand(SendMessageServiceRequest request)
 {
     From    = request.From;
     To      = request.To;
     Content = request.Content;
 }