title: How to pass Model to a Controller from a confirm Dialog written with JavaScript
body: <p>I have a HTML page which has a model as follows:</p>
  
  <pre><code>@model ViewModel.Ekranlar.ModelVM
  </code></pre>
  
  <p>I call a Confirm Dialog written with JavaScript in the html page as in the following:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $(".confirmDialog").on("click", function (e) {
              // e.preventDefault(); use this or return false
              var url = $(this).attr('href');
              $("#dialog-confirm").dialog({
                  autoOpen: false,
                  resizable: false,
                  height: 170,
                  width: 350,
                  show: { effect: 'drop', direction: "up" },
                  modal: true,
                  draggable: true,
                  buttons: {
                      "OK": function () {
                          $(this).dialog("close");
                          window.location = url;
                      }, "Cancel": function () {
                          $(this).dialog("close");
                      }
                  }
              });
              $("#dialog-confirm").dialog('open');
              return false;
          });
      }); &lt;/script&gt;
  </code></pre>
  
  <p>And the controller is as in the following:</p>
  
  <pre><code>public ActionResult DUDBaskaniBuro2GidenIptal(ModelVM model)
  </code></pre>
  
  <p>How can I pass <code>ModelVM</code> model to the Action in the controller?</p>
  
  <p>Thanks for your helps.</p>