I have a web api controller that is called by ajax query from my page. All works fine when the async value is set to true. When is set to false the ajax query does not fires. See below my code

C# web api controller

```
using System;
using Microsoft.Xrm.Sdk;
using CRM_WebApp.Models;
using System.Web.Http;
using System.Web.Http.Cors;
using Microsoft.Xrm.Sdk.Query;
using CRM_WebApp.Services;
using System.Text.RegularExpressions;

namespace CRM_WebApp.Controllers
{
[EnableCors(origins: "*", headers: "*", methods: "*")]
public class CallBackFormController : ApiController
{
    [System.Web.Http.HttpPost]
    public System.Web.Http.IHttpActionResult Post([System.Web.Http.FromBody] CallBackFormModel CallBackFormModel)
    {
        ConnectiontoCrm connectiontoCrm = new ConnectiontoCrm();
        connectiontoCrm.GetConnectiontoCrmCopy();

        //Create Lead
        Entity lead = new Entity("lead");
        lead["firstname"] = CallBackFormModel.FirstName;

        return Json(new { result = "ok" });

    }
  }
}

```

Below is my ajax query

```
<script>

$("input[name='crm']").click(function(){

   var Data = {FirstName : $("input[name='user_name']").val()};

   makeAjaxCall(Data);  

  });

function makeAjaxCall(Data){
    $.ajax({

                url: "http://localhost:54360///api/CallBackForm",
                type: "POST",
                dataType: "json",
                async: false,
                contentType: 'application/json',
                data: JSON.stringify(Data),

                success: function(data){

                    alert("DONESUCCESS"); 
                },
                error: function(data){
                    alert("DONEERROR");
                }
            });

     }

</script>

```

I'm not sure how can i change my code to get the error