posting complex data is object returning null when pass to controller in asp.net mvc by ajax :    // Ajax Call
    $.ajax({
                type: "POST",
                url: $rootScope.settings.webApis.RealTimeAIAPIService.url,
                dataType: "json",
                contentType: "application/json; charset=utf-8",
                data: JSON.stringify(realTimeAIConfig),
            }).done(function (result, response) {
                if (response == "success") { }
     });

    //Controller Method
      [HttpPost]

      [EnableCors("*", "*", "*")]

      public async Task<IHttpActionResult> Post(RealTimeAIConfig realTimeAIConfig)

      {

            if (!ModelState.IsValid)
            
            {

              return BadRequest(ModelState);
            }

            try
            {

                if (realTimeAIConfig.ID != 1)
                {
                   _RealTimeAIConfigService.CreateAsync(realTimeAIConfig);
                }

                return null;
            }
            catch
            {

            }
            return Created(realTimeAIConfig);
        }
