/// <summary>
        /// 处理没有登录授权的
        /// </summary>
        /// <param name="filterContext">filterContext</param>
        private static void ProcessingWithoutPermission(AuthorizationContext filterContext)
        {
            string url     = CommonFilters.GetLoginUrl();
            var    message = new { Type = "RequireLogon", Result = CommonFilters.GetLoginUrl() };

            CommonFilters.ProcessingWithoutPermission(filterContext, url, message.SerializeObject());
        }
        /// <summary>
        /// 控制器执行之前
        /// </summary>
        /// <param name="context">控制器执行上下文</param>
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            try
            {
                string controllerName = context.RouteData.Values["controller"].ToString();
                string actionName     = context.RouteData.Values["action"].ToString();

                // 验证权限
                if (!PermissionValidation(controllerName, actionName))
                {
                    CommonFilters.ProcessingUnauthorized(context);
                }
            }
            catch (Exception ex)
            {
                LogService.WriteLog(ex, "权限验证出错");
                CommonFilters.ProcessingException(context, "权限验证出错");
            }
        }
 /// <summary>
 /// 处理异常的
 /// </summary>
 /// <param name="filterContext">filterContext</param>
 /// <param name="message">message</param>
 private static void ProcessingExceptionPermission(AuthorizationContext filterContext, string message)
 {
     CommonFilters.ProcessingExceptionPermission(filterContext, message);
 }