public async Task <IActionResult> Index(int instructoId) { using (var httpClient = ClientFactory.CreateClient("GeorestApi")) { var georestClient = new GeorestClient(httpClient.BaseAddress.ToString(), httpClient); ViewBag.InstructorLabs = await georestClient.GetLabsForInstructorAsync(instructoId); } return(View()); }