title: Reload page js after database query in MVC
body: <p>I have such script:</p>
  
  <pre><code>$(document).ready(function () {
      $('#requestTable').DataTable(
          {
              aoColumns: [
              { mDataProp: "DateStart", sTitle: "Date Start" },
              { mDataProp: "DateEnd", sTitle: "Date End" },
              { mDataProp: "Approved", sTitle: "Approved" },
              { mDataProp: "Data", sTitle: "Employee" },
              { mDataProp: "Position", sTitle: "Position" },
              { mDataProp: "", sTitle: "" }
              ],
              columnDefs: [{
                  targets: 'no-sort',
                  orderable: false
              }]
          });
  
      $('button.accept-button').click(function () {
          var id = $(this).attr('data-id')        
          $.ajax({
              type: "POST",
              url: "/TableRequest/AcceptRequest",
              data: { 'id': id },
              success: function (msg) {
              }
          });
          location.reload(true);
      });
      var tempId;
      $('button.decline-button').click(function () {
          tempId = $(this).attr('data-id')
          $("#dialog").dialog()
      });
      $('button.ok-request').click(function () {
          var message = $('textarea#commentForDecline').val();
  
          $.ajax({
              type: "POST",
              url: "/TableRequest/DeclineRequest",
              data: { 'message': message, 'id': tempId },
              success: function (msg) {
              }
          });
          $("#dialog").dialog('close');
          $('textarea#commentForDecline').val('');
          location.reload(true);
      });
  }); 
  </code></pre>
  
  <p>As you can see I reload page after post Ajax query. But is there any way to check changes in Db and refresh page after this (call the <code>Action</code>)? So Db changes is late and I wanna to check it.</p>