title: Angularjs $http.post, asp.net mvc controller gets null
body: <p>In my Angularjs service I have this code:</p>
  
  <pre><code>$http.post("/EditWorkout/GetId", data).error(function (responseData) {
              console.log("Error !" + responseData);
          });
  </code></pre>
  
  <p>And I have this method in my ASP.net controller:</p>
  
  <pre><code>       [System.Web.Http.HttpPost]
          public JsonResult GetId(string routineId)
          {
              try
              {
                  string x = routineId;
                  return Json(new {success = true});
              }
              catch (Exception ex)
              {
  
                  return Json(new { success = false, errorMessage = ex.Message });
              }
  
          }
  </code></pre>
  
  <p>I've put a break point on <code>return Json(new {success = true});</code> and it gets fired, but my routineId is for some reason null, and data which I send using angular's $http.post isn't.</p>
  
  <p>Why is this happening ?</p>