title: The Data Parameters values of .ajax() method is not passed to the C# function in asp.net core 2.0
body: <p>I am doing a very simply <strong>ajax() method</strong> call in <strong>asp.net core 2.0</strong>. It is just calling a controller function from view. It also passes value using the <strong>data</strong> parameter. </p>
  
  <p>The C# function is getting called but the <strong>controller function parameter</strong> is not <strong>receiving the value</strong>. </p>
  
  <p>The code:</p>
  
  <pre><code>var idChecked = 5;
  $.ajax({
      type: "POST",
      url: "/BlogCategory/UpdateBulkStatus",
      contentType: "application/json; charset=utf-8",
      data: '{"idChecked":"' + idChecked + '"}',
      dataType: "html",
      success: function (msg) {
  
      },
      error: function (req, status, error) {
  
      }
  });
  </code></pre>
  
  <p>Controller function</p>
  
  <pre><code>public string UpdateBulkStatus(string idChecked)
  {
    return "abc";
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/MQ8CK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MQ8CK.png" alt="enter image description here"></a></p>
  
  <p>The <strong>idChecked</strong> variable is null always. </p>
  
  <p>What is wrong? The same code works on MVC 5 but not on core?</p>