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