using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Security; using Warehouse.Code; namespace Warehouse.Controllers.Account { [RoutePrefix("Account")] public class AccountController : Controller { [Route("Login")] [CustomAuthorizeAttribute(IsCheck = false)] // GET: Account public ActionResult Login() { return View("~/Views/Account/Login.cshtml"); } [Route("Signout")] [CustomAuthorizeAttribute(IsCheck = false)] public ActionResult Signout() { Session.Abandon(); FormsAuthentication.SignOut(); return new RedirectResult("~/Account/Login"); //return View("~/Views/Account/Login.cshtml"); } } }