public async Task <IActionResult> GetAsync(string customerId) { var orders = await salesProvider.GetAsync(customerId); if (orders != null && orders.Any()) { return(Ok(orders)); } return(NotFound()); }
public async Task <IActionResult> GetAsync(string CustomerId) { var result = await salesProvider.GetAsync(CustomerId); if (result != null && result.Any()) { return(Ok(result)); } return(NotFound()); }