public static bool HasPermission(int[] permissions)
        {
            if (!HttpContext.Current.User.Identity.IsAuthenticated)
            {
                return(false);
            }
            var    username = HttpContext.Current.User.Identity.Name;
            string key      = $"AuthorizeService-Permission-{username}";
            var    list     = new MemoryCacheManager().Get(key, GetPermissionByUser);

            return(list.Any(permissions.Contains));
        }