public async Task <ActionResult <BaseCustomerDto[]> > GetCustomers([FromRoute] Guid customerId) { var customer = await _customerQueryService.GetCustomer(customerId); if (null == customer) { return(NotFound($"Customer ID {customerId} not found")); } return(Ok(customer)); }
public Task <BaseCustomerDto> GetCustomer(Guid customerId) { return(_customerQueryService.GetCustomer(customerId)); }