title: How do I cancel a request for post Mvc?
body: <p>I'm trying to implement the following idea:
  When you save a User is a matter without a cover
  is to ask whether to save anyway by sending a question to him with jquery.
  but the problem is that no matter if he chooses the option that it saves the same way
  I'm using this jquery .. some form to make such a request .. when to cancel
  he did not do anything on a page or not restrain oo <code>[HttpPost]</code> of mvc?</p>
  
  <p>this and I'm using jquery</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function () {
      $("#Salvar").click(function () {
          if ($("#CapaSelecionada").val() == null) {
              var answer = confirm("Deseja criar uma materia sem capa?")
              if (answer) {
                  alert("salvou");
              } else {
                  location.pathname;
              }
          }
      });
  });
  &lt;/script&gt;
  </code></pre>