Пример #1
0
        public VipSetting FindByVipLevel(UserVipLevel vipLevel)
        {
            //var cacheKey = CacheKey.VIP_SETTING_KEY + "DOMAIN_" + vipLevel.ToString("D");
            //VipSetting vipSetting;

            //if (!Cache.TryGet<VipSetting>(cacheKey, out vipSetting))
            var vipSetting = base.FindById<VipSetting>((int)(vipLevel));

            return vipSetting;
        }
Пример #2
0
 public VipSettingModifyScoreLine(UserVipLevel vipSettingLevel, int scoreLine, int byUserID)
 {
     this.UserVipLevel = vipSettingLevel;
     this.ScoreLine = scoreLine;
     this.ByUserID = byUserID;
 }
Пример #3
0
 public VipSettingModifyVoteCount(UserVipLevel vipSettingLevel, int voteCount, int byUserID)
 {
     this.UserVipLevel = vipSettingLevel;
     this.VoteCount = voteCount;
     this.ByUserID = byUserID;
 }
Пример #4
0
 public VipSettingModifyDiscount(UserVipLevel vipSettingLevel, decimal discount, int byUserID)
 {
     this.UserVipLevel = vipSettingLevel;
     this.Discount = discount;
     this.ByUserID = byUserID;
 }