Ejemplo n.º 1
0
        public ActionResult Logon()
        {
            if (_LogonStatus.isSigned())
            {
                return(Content("PASS"));
            }

            return(View());
        }
Ejemplo n.º 2
0
 public ActionResult Index()
 {
     if (_LogonStatus.isSigned())
     {
         ViewBag.User = User.Identity.Name;
         return(View());
     }
     return(RedirectToAction("Login"));
 }