Esempio n. 1
0
 public async Task <ActionResult <PatchImageCommandResponse> > Patch([FromRoute] int imageID, [FromBody] PatchImageCommand request)
 {
     request.Project(x => x.ImageID = imageID);
     return(await Send(request));
 }
Esempio n. 2
0
 public async Task <ActionResult <PatchImageCommandResponse> > Patch(PatchImageCommand request, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await Mediator.Send(request, cancellationToken));
 }