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