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