Exemplo n.º 1
0
 public async Task <IActionResult> Index(int studentId)
 {
     using (var httpClient = ClientFactory.CreateClient("GeorestApi"))
     {
         var georestClient = new GeorestClient(httpClient.BaseAddress.ToString(), httpClient);
         ViewBag.StudentResponses = await georestClient.GetAllStudentResponsesAsync().ConfigureAwait(false);
     }
     return(View());
 }