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