public async Task <ActionResult <GetCustomerByIDQueryResponse> > Get(GetCustomerByIDQuery request, CancellationToken cancellationToken = default(CancellationToken)) { return(await Mediator.Send(request, cancellationToken)); }
public async Task <ActionResult <GetCustomerByIDQueryResponse> > Get([FromRoute] GetCustomerByIDQuery request) { return(await Send(request)); }