private bool IsValid(HttpContextBase httpContext)
        {
            AuthorizeUserInfo userInfo = new AuthorizeUserInfo(httpContext);

            return(userInfo.Roles.Contains(this.AccessLevel) || (RoleList != null && RoleList.Any(r => userInfo.Roles.Any(u => u == r))));
        }
 private bool IsValid(HttpContextBase httpContext)
 {
     AuthorizeUserInfo userInfo = new AuthorizeUserInfo(httpContext);
     return userInfo.Roles.Contains(this.AccessLevel) || (RoleList != null && RoleList.Any(r => userInfo.Roles.Any(u => u == r)));
 }
 public BaseController()
     : base()
 {
     userInfo = new AuthorizeUserInfo(null);
 }