Esempio n. 1
0
        public async Task <IActionResult> FacilityList()
        {
            IFacilityConfigurationClient fc = new FacilityConfigurationClient(new Uri("http://facilityconfigurationservice.devint.dev-r5ead.net"));

            var facilities = await fc.GetAllFacilities();

            return(Ok(facilities));
        }
Esempio n. 2
0
        static public async Task <List <string> > GetFacilityList()
        {
            IFacilityConfigurationClient fc = new FacilityConfigurationClient(new Uri("http://facilityconfigurationservice.devint.dev-r5ead.net"));

            var facilities = await fc.GetAllFacilities();

            return(facilities.Select(a => a.FacilityName).ToList());
        }