/// <summary>
        /// 更新用户级别
        /// </summary>
        /// <param name="userGrade"></param>
        /// <returns></returns>
        public static DataActionStatus Update(UserGrade userGrade)
        {
            DataActionStatus status;

            CommonDataProvider.Instance.CreateUpdateUserGrade(userGrade, DataProviderAction.Update, out status);
            HHCache.Instance.Remove(CacheKeyManager.GetUserGradeKey(userGrade.GradeID));
            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);
        }