title: asp.net ajax not sending data
body: <p>My AJAX is not sending data to my http post controller.</p>
  
  <p>My controller:</p>
  
  <pre><code>[Route("api/sendingData")]
  public class TestController : ApiController
  {
      [HttpPost]
      public string Post([FromBody] int propertyID)
      {
          return string.Format("Test");
      }
  }
  </code></pre>
  
  <p>My AJAX:</p>
  
  <pre><code>$.ajax(
      {
          url: "api/sendingData",
          type: "POST",
          dataType: 'json',
          data: {
              'propertyID': '1'
          },
          success: function (result) {
              console.debug(result);
              alert(result);
          },
          error: function (xhr, status, p3, p4) {
              console.debug(xhr);
              var err = "Error " + " " + status + " " + p3;
              if (xhr.responseText &amp;&amp; xhr.responseText[0] == "{")
                  err = JSON.parse(xhr.responseText).message;
              alert(err);
          }
      });
  </code></pre>
  
  <p>I'm trying to send the <code>propertyID=1</code>. However, when I debug my controller, it shows <code>propertyID=0</code>.</p>
  
  <p>Does anyone know what is wrong?</p>