Esempio n. 1
0
 public async Task <IActionResult> Index()
 {
     using (var httpClient = ClientFactory.CreateClient("GeorestApi"))
     {
         var georestClient = new GeorestClient(httpClient.BaseAddress.ToString(), httpClient);
         ViewBag.Sections = await georestClient.GetAllSectionsAsync();
     }
     return(View());
 }