Esempio n. 1
0
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var user = BLUser <ETUserAdmin> .GetLogged();

            if (user == null)
            {
                filterContext.Result = new RedirectResult("/Admin/Login");
            }
        }
Esempio n. 2
0
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var user = BLUser <ETUserPublic> .GetLogged();

            if (user != null)
            {
                filterContext.Result = new RedirectResult(HelpersMethods.GetLastUrl());
            }
        }
Esempio n. 3
0
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var user = BLUser <ETUserPublic> .GetLogged();

            if (user == null)
            {
                filterContext.Result = new RedirectResult("../AccessDenied/");
            }
        }