예제 #1
0
        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));
        }
예제 #2
0
        public ActionResult <IEnumerable <Customer> > GetCustomers()
        {
            var result = _repository.GetCustomers();

            return(Ok(result));
        }