title: rest api call in webapi asp.net
body: <p>{
  var client = new RestClient(&quot;&quot;);--this is giving error</p>
  <p>var request = new RestRequest(Method.POST);</p>
  <p>request.AddHeader(&quot;postman-token&quot;, &quot;4633ec00-efe4-608f-6cf8-fbdf7094a203&quot;);</p>
  <p>request.AddHeader(&quot;cache-control&quot;, &quot;no-cache&quot;);
  request.AddHeader(&quot;authorization&quot;, &quot;Basic U05PV19QSTpzYXBAMTIzNA==&quot;);</p>
  <p>request.AddHeader(&quot;content-type&quot;, &quot;application/json&quot;);</p>
  <p>request.AddParameter(&quot;application/json&quot;, &quot;{}&quot;, ParameterType.RequestBody);</p>
  <p>IRestResponse response = client.Execute(request);--giving error
  }</p>