public async Task <ActionResult <PatchCustomerCommandResponse> > Patch(PatchCustomerCommand request, CancellationToken cancellationToken = default(CancellationToken)) { return(await Mediator.Send(request, cancellationToken)); }
public async Task <ActionResult <PatchCustomerCommandResponse> > Patch([FromRoute] int customerID, [FromBody] PatchCustomerCommand request) { request.Project(x => x.CustomerID = customerID); return(await Send(request)); }