Exemplo n.º 1
0
        public async Task <IActionResult> ReplyCommentAsync(Guid id, Guid commentId, [FromBody] ReplyCommentCommand command)
        {
            command.PostId    = id;
            command.CommentId = commentId;

            return(await CreateCommandResponse(command));
        }
        public async Task <ActionResult <int> > ReplyCommentAsync([FromBody] ReplyCommentCommand command)
        {
            var commentCount = await _mediator.Send(command);

            return(Ok(ResponseWrapper.CreateOkResponseWrapper(commentCount)));
        }