title: how to send modeldata and currenttime from view to controller action using jquery
body: <p>i have written following code to send modeldata and currenttime to controller action.what is the correct way to pass it.</p>
  
  <pre><code>$(document).ready(function () {
  
      timeClock = setInterval("TimeTick()", 10);
      SwipeIn(); SwipeOut();
  
      $('#btnswipeIn').click(function () {
  
          clearTimeout(swipeinId);
  
          var ptime = $("#swipeIn").text();
  
          alert(ptime);
  
          var url = "EmployeeDashBoard/Index/";
  
          $.post(url, { model: $("#dashboard").serialize(), time: ptime }, function (result) { $('#time').html(resul.time) });
  
  
      });
  
  });
  </code></pre>