title: Get a list of users interrogating a public api using entity framework
body: <p>I have to create exercise project in asp core, i have sample api to query for returning list of all users. I have auth token and making test from postman works fine. </p>
  
  <p>I have write a controller that recall a service that make a get request.
  I have also a service recalled by controller tath do a get request. </p>
  
  <p>a this point i cant able to convert my response in a list of user (really i have to use user dto object here), and i dont know i i can use ef to have all data in the context:</p>
  
  <pre><code>   public async Task&lt;IEnumerable&lt;User&gt;&gt; GetAllAsync(string token, string 
     baseUrl)
     {
       using (HttpClient client = new HttpClient())
  
      //Setting up the response...         
      using (HttpResponseMessage res = await client.GetAsync(baseUrl + 
      "users?access-token=" + token))
      using (HttpContent content = res.Content)
      {
  
          var data = await content.ReadAsStringAsync&lt;List&lt;UserDto&gt;&gt;();
          if (data != null)
          {
              Console.WriteLine(res.StatusCode);
  
          }
      }
      // this row is wrong, i have to use ef and put in context all list here
      return _context.Users;
  
  }
  </code></pre>
  
  <p>I have loaded sample solution that reproduce the issue on google drive here: drive.google.com/open?id=1-cZU01sjZ5aRf4OGGOxIZpYiSbQnXr1p </p>
  
  <p>Thanks for the help.</p>