public async Task <ActionResult <IEnumerable <Customer> > > GetCustomers() { using (var httpClient = new HttpClient()) { using (var response = await httpClient.GetAsync("http://localhost:5000/api/burndown")) { string apiResponse = await response.Content.ReadAsStringAsync(); } } var result = _repository.GetCustomers(); return(Ok(result)); }
public ActionResult <IEnumerable <Customer> > GetCustomers() { var result = _repository.GetCustomers(); return(Ok(result)); }