title: asp.net mvc 4 calling method from controller by button
body: <p>In my Controllers i have class AccountController and within in i have this method</p>
  
  <pre><code>[HttpPost]
  [ValidateAntiForgeryToken]
  public ActionResult LogOff()
  {
      WebSecurity.Logout();
      return RedirectToAction("Index", "Home");
  }
  </code></pre>
  
  <p>In my Views i have cshtml page with body and this part of code </p>
  
  <pre><code>&lt;form class="float_left" action="Controllers/AccountController" method="post"&gt;
      &lt;button class="btn btn-inverse" title="Log out" type="submit"&gt;Log   Off&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And this doesn't work, anyone know what is problem or some other simple solution?</p>