title: Retrieving the response from Rest API
body: <p>I am working on creating an API that call the other third party API. The third party API is an REST API and returns response in the JSON format when I call it in the web browser </p>
  
  <pre><code>[{"Acc":"IT","Cnt":"023","Year":"16"}]
  </code></pre>
  
  <p>I am trying to get the same response when I call the third party API from my API. </p>
  
  <pre><code>public IHttpActionResult Get(string acctID) 
  {
      using (var client_EndPoint= new HttpClient())
      {
          Uri uri_EndPoint = new Uri(BaseURL_EndPoint);
          client_EndPoint.BaseAddress = uri;
          client_EndPoint.DefaultRequestHeaders.Accept.Clear();
          client_EndPoint.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
  
          string EndPoint_URL = BaseURL_EndPoint+"api/NameCreation?Account="+acctID;
          var response_EndPoint = client_EndPoint.GetAsync(EndPoint_URL).Result;
          string responseString = response_EndPoint.Content.ReadAsStringAsync().Result;
          return Ok(responseString);
      }
  }
  </code></pre>
  
  <p>What I have been doing is getting the response from the third party API in a string. But I am checking if there is a way I can get in the JSON format so I can return them directly. The return type of the get method is <code>IHttpActionResult</code>. If I am returning as string the response looks like</p>
  
  <pre><code>"[{\"Acc\":\"adm\",\"Cnt\":\"001\",\"Year\":\"16\"}]"
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>