title: ASP.NET MVC ajax request not found error
body: <p>I am trying to get data from server by ajax.</p>
  
  <p>Here's my ajax request: </p>
  
  <pre><code>$.ajax({
      type: 'post',
      contentType: "application/json; charset=utf-8",
      url: '@Url.Action("GetData", "MyController")',
      dataType: "json",
      data: { 'skip': '5' },
      success: function (data) {
          alert(data);
      },
      error: function (jqXHR, textStatus, errorThrown) {
          alert("error: STATUS = " + textStatus + "ERROR = " + errorThrown);
       }
  });
  </code></pre>
  
  <p>and my action: </p>
  
  <pre><code>[HttpPost]
  public ActionResult GetData(string skip)
  {
      return new JsonResult() {Data = "test"};
  }
  </code></pre>
  
  <p>with this code I get <code>404 not found error</code>, 
  when I remove the <code>HttpPost</code> attribute I get <code>Internal Server Error</code>.</p>