protected override void OnActionExecuting(ActionExecutingContext filterContext) { if (SessionUtility.GetUser() == null) { filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Login", action = "Index" })); } base.OnActionExecuting(filterContext); }