title: Ajax request doesn't work in net core 2.2
body: <p>I have a <code>&lt;a&gt; element</code> with an <code>ajax</code> request attached to it. The request triggers a method in my <code>AdminController</code>, and should return a json with a boolean value. There is no data send with the ajax request to the back-end. If i try this code, it  What am I missing?</p>
  
  <p>However, I get the full html of the page back. </p>
  
  <p>My ajax call:</p>
  
  <pre><code>$(document).ready(function () {
      $(function () {
          $(".pp-get-status").click(function () {
              $.ajax({
                  type: "POST",
                  url: "Admin/GetAzFunctionForRefresh",
                  contentType: "application/json",
                  success: function (response) { 
                      console.log(response);
                  },
                  error: function (error) {
                      alert(error.status);
                  }
              });
              return false;
          });
      });
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>[HttpPost]
    public async Task&lt;JsonResult&gt; GetAzFunctionForRefresh()
  {
      bool status = await _admin.CheckStatus(); // some business logic
      return Json(new { Message = status });
  }
  </code></pre>
  
  <p>and the a element in the html</p>
  
  <pre><code>&lt;a class="pp-get-status" title="Refresh for this resource"&gt;
  &lt;i class="fas fa-sync img-vhd"&gt;&lt;/i&gt;
  &lt;/a&gt;
  </code></pre>