title: How to make Call to Controller JsonResult from AngularJS with parameters like jquery ajax
body: <p>Here is my code:</p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"&gt;&lt;/script&gt;
      &lt;span&gt;Username:&lt;/span&gt;&lt;input type="text" id="username" /&gt;
      &lt;span&gt;Password:&lt;/span&gt;&lt;input type="text" id="password" /&gt;
  &lt;input type="button" value="Call Angular" onclick="Login()" /&gt;
  </code></pre>
  
  <p>My Action:</p>
  
  <pre><code>    public JsonResult Login(string Username, string password)
      {
          //check authentication
          JsonResult result = new JsonResult();
          result.Data = true;
          return Json(result, JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  
  <p>I want to send 2 parameters (username and password) with this call to my JsonResult with angularjs.</p>