public async Task <ActionResult <AppComment> > AddComment(AddComment.Command command) { return(await _mediator.Send(command)); }
public async Task <ActionResult <CommentDto> > CreateComment(string clipId, AddComment.Command command) { command.ClipId = clipId; return(await _mediator.Send(command)); }
public async Task <IActionResult> Comment(Guid id, AddComment.Command command) { command.Id = id; return(HandleResult(await Mediator.Send(command))); }