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