title: How to call API with multiple json parameter from c# mvc controller
body: <p>I want to call WebAPI from a controller. Also I want to pass multiple json parameters from controller. So, how to bind that data with api?</p>
  
  <pre><code> var jsonData = "{\"jsonrpc\":2.0," +
                  "\"method\":eth_blockNumber," +
                  "\"params\":[]," +
                  "\"id\":83}";
  
  HttpWebRequest webreq = (HttpWebRequest)WebRequest.Create(string.Format("https://mainnet.infura.io/qhggowRXK7HIgXB0NEyw",jsonData));
  webreq.Method = "POST";
  webreq.ContentType = "application/json";
  using (var streamWriter = new StreamWriter(webreq.GetRequestStream()))
  {
      JavaScriptSerializer serializer = new JavaScriptSerializer();
      //var resToWrite = serializer.Deserialize&lt;Dictionary&lt;string, object&gt;&gt;(jsonData);
      //streamWriter.Write(jsonData);
      streamWriter.Flush();
      streamWriter.Close();
  }
  WebResponse response = webreq.GetResponse();
  var streamReader = new StreamReader(response.GetResponseStream());
  var result = streamReader.ReadToEnd();
  </code></pre>