Пример #1
0
 protected override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     if (SessionUtility.GetUser() == null)
     {
         filterContext.Result = new RedirectToRouteResult(new
                                                          RouteValueDictionary(new { controller = "Login", action = "Index" }));
     }
     base.OnActionExecuting(filterContext);
 }