title: Ajax call not triggering
body: <p>I want to fetch the employee details for autocomplete
  below is my JS code, using break point I could confirm its entering the else condition,
  but the ajax call is not being hit.</p>
  
  <pre><code>$("#EmpName").autocomplete({
              source: function (request, response) {
                  if (request.term.length &lt;= 1) {
                  }
                  else {
                      $.ajax({
                          url: "/EmployeeController/GetEmployeeList",
                          type: "POST",
                          dataType: "json",
                          data: request,
                          success: function (data) {
                              var rows = new Array(data.length);
                              var count = -1;
                              if (data.length &gt; 0) {
                                  response($.map(data, function (Label, Value) {
                                      count++;
                                      return {
                                          label: data[count].Label,
                                          value: data[count].Label
                                      };
                                  }))
                              }
                              else {
                                  response($.map(request, function (Label, Value) {
                                      return {
                                          label: "No result found",
                                          value: ""
                                      };
                                  }))
                              }
                          }
                      })
                  }
              }
          });
  </code></pre>
  
  <p>and below is my code in controller</p>
  
  <pre><code>[HttpPost]
  [ActionName("GetEmployeeList")]
  public IActionResult GetEmployeeList(string term)
  {
       //Create an object for  GetEmployeeList method
       return Json(ServiceLocator.Resolve&lt;EmployeeService&gt;().GetEmployeeList(term));
  }
  </code></pre>
  
  <p>Thanks in advance.</p>