public async Task <ActionResult> CreateComment([FromRoute][Required] int id, [FromBody] CreateIssueCommentCommand command) { command.Id = id; var result = await _mediator.Send(command); return(result.ToResultIfValid <NoContentResult>()); }
public void PostComment(CreateIssueCommentCommand command) { _createIssueCommentCommandHandler.Handle(command); }