public async Task <IActionResult> CreateComment(CreatePostCommentCommand createPostCommentCommand)
        {
            if (!ModelState.IsValid)
            {
                return(NoContent());
            }

            await Mediator.Send(createPostCommentCommand);

            return(NoContent());
        }
Ejemplo n.º 2
0
 public async Task <ActionResult <int> > CreateComment(CreatePostCommentCommand command)
 {
     return(await Mediator.Send(command));
 }