title: Post form Ajax to Controller erro 404 C#
body: <p>I have a response 404 from controller on submit simple form.</p>
  
  <p>javascript:</p>
  
  <pre><code>var FunctionName= function () {
  var form = $("#formId").serialize();
  form.validate();
  if (form.valid()) {
      $.ajax({
          url: "/Cliente/Register",
          data: form,
          type: "POST",
          success: function (data) {
              if (data.success) {
                  //todo
              }
              else {
                  //todo
              }
          },
          error: function (XMLHttpRequest, textStatus, errorThrown) {
              $(".LoginMessage").html("Erro");
              alert("Status: " + textStatus); alert("Error: " + errorThrown);
          }
      });
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Controller:</p>
  
  <pre><code>[HttpPost]
      public JsonResult Register(FormCollection values)
      {...}
  </code></pre>
  
  <p>When I remove the action filter "[httpPost]" the system finds the method, someone help me please...</p>