예제 #1
0
        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>());
        }
예제 #2
0
 public void PostComment(CreateIssueCommentCommand command)
 {
     _createIssueCommentCommandHandler.Handle(command);
 }