Ejemplo n.º 1
0
        TierLevelViewModel CreateTierObject(TierLevelInfo inInfo)
        {
            var result = new TierLevelViewModel();

            result.Name                        = inInfo.Name;
            result.TierLevelNumber             = inInfo.Level;
            result.BirthdayBonus               = inInfo.BirthdayBonus;
            result.PointsRequired              = inInfo.PointsRequired;
            result.RedeemPointsRate            = inInfo.PricedRedemptionRate;
            result.WeightedRedeemPoints        = inInfo.WeighedRedemptionPoints;
            result.WeightedRedeemPointsValue   = inInfo.WeighedRedemptionWeight;
            result.SendMailToHeadQuarter       = inInfo.SendMailToHeadOffice;
            result.ChangeCard                  = inInfo.ChangeCard;
            result.SendMailToUser              = inInfo.SendMailToMember;
            result.AllowEarntLoyaltyRedemption = inInfo.AllowEarntLoyaltyRedemption;
            return(result);
        }
Ejemplo n.º 2
0
        TierLevelInfo CreateTierInfo(TierLevelViewModel inTierInfo)
        {
            var result = new TierLevelInfo();

            result.TierId                      = Convert.ToInt32(inTierInfo.TierLevelId);
            result.Name                        = inTierInfo.Name;
            result.Level                       = inTierInfo.TierLevelNumber;
            result.BirthdayBonus               = inTierInfo.BirthdayBonus;
            result.PointsRequired              = inTierInfo.PointsRequired;
            result.PricedRedemptionRate        = inTierInfo.RedeemPointsRate;
            result.WeighedRedemptionPoints     = inTierInfo.WeightedRedeemPoints;
            result.WeighedRedemptionWeight     = inTierInfo.WeightedRedeemPointsValue;
            result.SendMailToHeadOffice        = inTierInfo.SendMailToHeadQuarter;
            result.ChangeCard                  = inTierInfo.ChangeCard;
            result.SendMailToMember            = inTierInfo.SendMailToUser;
            result.AllowEarntLoyaltyRedemption = inTierInfo.AllowEarntLoyaltyRedemption;
            return(result);
        }