public async Task <IActionResult> CreateCommentReply([FromBody] CreateCommentReplyRequest request) { var createCommentReplyCommand = new CreateCommentReplyCommand(request); var result = await mediator.Send(createCommentReplyCommand); return(StatusCode((int)result.Code, result.Value)); }
public async Task <ActionResult <long> > Reply([FromBody] CreateCommentReplyCommand command) => await Mediator.Send(command);