title: Second sequential ajax call response not coming into its success function
body: <p>I have made two sequential ajax call successfully but the response of second Ajax call from controller is not coming into the respective Ajax success function.</p>
  
  <p><strong>Ajax Function</strong></p>
  
  <pre><code>        $(document).on("click", "#AddTempStock", function () {
              var formData = $("#StockItemEntryForm").serialize();               
              var prodId =   $("#addMoreStock").data("prod-id");
              $.ajax({
                  type: 'POST',
                  url: '../StockTracker/PersistTempStockItem?prodId=' + prodId,
                  data: formData,
                  success: function (data) {
  
                      var msg = '' + data + '';
  
                      if (data != null) {
                          if (data == 'SUCCESS')
                          {   // Hiding Popup
                              $('#GenericPopup').modal('hide');
                              msg = 'Stock against ' + prodId + ' saved successfully.';   
                          }                           
                          // showing message
                          Messenger().post({
                              message: msg,
                              type: 'error',
                              showCloseButton: true
                          });
                      }
                  },
                  complete: function (data1)
                  {
                      //Showing temporarily Added stock in StockTracker Homepage
                      $.ajax({
                          type: 'GET',
                          url: '../StockTracker/GetTempStockView',
                          data: { "UserName": '@user', "SeasonYear": '@Season', "Company": '@CompName' },  
  </code></pre>
  
  <p>Below piece of code is not executing.
  ActionMethod is called in controller and returning.</p>
  
  <pre><code>                        success: function (data1) {
                              if (data1 != null) {
                                  $('.temp-added-stock').html(data1);
                              }
                          }
                      });
                  }
              });
          });
  </code></pre>