public ActionResult Logon() { if (_LogonStatus.isSigned()) { return(Content("PASS")); } return(View()); }
public ActionResult Index() { if (_LogonStatus.isSigned()) { ViewBag.User = User.Identity.Name; return(View()); } return(RedirectToAction("Login")); }