public async Task <IActionResult> ReplyToAsync(int emailMessageId, [FromForm] ReplyToEmail command) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { await _emailMessageService.ReplyToAsync(emailMessageId, UserId, command.TextHTMLBody, command.ReplyToAll, command.Attachments, command.Cc, command.Bcc); return(NoContent()); } catch (Exception e) { return(BadRequest(e.Message)); } }