title: How to pass multiple parameters using web-api
body: <p>I want to pass two params using json in web-api, but I get null each time I try, what am I missing ? is there a better way to pass more than one parameter?</p>
  
  <p>//HTML</p>
  
  <pre><code>var uri = "api/Login";
  </code></pre>
  
  <p>//after I click a button this function fires</p>
  
  <pre><code>function checkUser() {
          var email = "ttt@ggg.com";   
         var password = "itsme";
            var details = "{ email:'"+ email+"', pass:'"+ password+"'}";           
          $.ajax({
              type: "Get",          
              data: JSON.stringify(details),
              url: uri,
              contentType: "application/json"
          });
      }
  </code></pre>
  
  <p>// LoginController</p>
  
  <pre><code>[HttpGet]
  public HttpResponseMessage Get([FromBody]string  data)
  {
       HttpResponseMessage msg = null;
       //the code run this function, but the 'data' is null
       string userinfo = data;                    
       return msg;
  }
  </code></pre>