public async Task <ActionResult <IEnumerable <Customer> > > GetCustomers() { var customers = await _customersRep.GetCustomersAsync(); if (!customers.Any()) { return(NotFound()); } return(Ok(customers)); }
public async Task <ActionResult <IEnumerable <Customer> > > GetCustomers() { var customers = await _customersRep.GetCustomersAsync(); if (!customers.Any()) { return(NotFound()); } return(Ok(customers)); }