title: How to Replace WebClient with HttpClient?
body: <p>I have the following WebClient inside my asp.net mvc web application:</p>
  
  <pre><code>using (WebClient wc = new WebClient()) // call the Third Party API to get the account id 
  {
       string url = currentURL + "resources/" + ResourceID + "/accounts?AUTHTOKEN=" + pmtoken;
       var json = await wc.DownloadStringTaskAsync(url);
   }
  </code></pre>
  
  <p>So can anyone advice how I can change it from WebClient to be HttpClient?</p>