title: How to pass json Data that obtained from rest api from controller to view?
body: <p>I made a wcf Rest sevice and i called service using my mvc application, Rest sevice is working properly and getting json data through url <strong>(<a href="http://localhost:56299/RestService.svc/List" rel="nofollow noreferrer">http://localhost:56299/RestService.svc/List</a>)</strong> using HttpClient class, but unable to access that data in controller and pass to view.</p>
  
  <p><em>Code :-</em></p>
  
  <pre><code>{
   *string apiurl = "http://localhost:56299/RestService.svc/List";
  
  HttpClient client = new HttpClient();
  
  client.BaseAddress = new Uri(apiurl);
  
   client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
  
  
  HttpResponseMessage response = await client.GetAsync(apiurl);
  
  var users = response.Content.ReadAsStringAsync().Result;
  
  var obj = JsonConvert.DeserializeObject(users);*
  }
  </code></pre>
  
  <p>I sucessfully obtained data in var obj in json format but further i am unable to returned json data in variable obj how i will use that?</p>