/// <summary>
        /// 添加用户级别
        /// </summary>
        /// <param name="userGrade"></param>
        public static DataActionStatus Create(UserGrade userGrade)
        {
            DataActionStatus status;

            userGrade = CommonDataProvider.Instance.CreateUpdateUserGrade(userGrade, DataProviderAction.Create, out status);
            HHCache.Instance.Remove(CacheKeyManager.GetUserGradeKeyByUserID(userGrade.UserID));
            return(status);
        }
        /// <summary>
        /// 根据ID获取用户级别信息
        /// </summary>
        /// <param name="userGradeID"></param>
        /// <returns></returns>
        public static UserGrade Get(int userGradeID)
        {
            string    cacheKey  = CacheKeyManager.GetUserGradeKey(userGradeID);
            UserGrade userGrade = HHCache.Instance.Get(cacheKey) as UserGrade;

            if (userGrade == null)
            {
                userGrade = CommonDataProvider.Instance.GetUserGrade(userGradeID);
                HHCache.Instance.Insert(cacheKey, userGrade);
            }
            return(userGrade);
        }
        /// <summary>
        /// 删除用户级别
        /// </summary>
        /// <param name="gradeID"></param>
        public static bool Delete(int gradeID)
        {
            bool flag = CommonDataProvider.Instance.DeleteUserGrade(gradeID);

            if (flag)
            {
                UserGrade grade = Get(gradeID);
                if (grade != null)
                {
                    HHCache.Instance.Remove(CacheKeyManager.GetUserGradeKeyByUserID(grade.UserID));
                    HHCache.Instance.Remove(CacheKeyManager.GetUserGradeKey(gradeID));
                }
            }
            return(flag);
        }