using Bootstrap.Admin.Models; using System.Web.Mvc; using System.Web.Security; namespace Bootstrap.Admin.Controllers { /// /// /// public class HomeController : Controller { /// /// /// /// public ActionResult Index() { var v = new HeaderBarModel(); return View(v); } /// /// /// /// public ActionResult Rules() { var v = new HeaderBarModel(); v.BreadcrumbName = "规则设置"; return View(v); } /// /// /// /// public ActionResult Terminals() { var v = new HeaderBarModel(); v.BreadcrumbName = "输入口设置"; return View(v); } /// /// /// /// /// /// /// [AllowAnonymous] public ActionResult Login(string username, string password, string remember) { if (username == "Argo") { FormsAuthentication.RedirectFromLoginPage(username, false); } return View(); } /// /// /// /// public ActionResult Logout() { FormsAuthentication.SignOut(); return RedirectToAction("Login"); } } }