public static webModel.PromotionReward ToWebModel(this coreModel.PromotionReward reward)
		{
			var retVal = new webModel.PromotionReward();
			retVal.InjectFrom(reward);
			retVal.RewardType = reward.GetType().Name;
			if (reward.Promotion != null)
			{
				retVal.Promotion = reward.Promotion.ToWebModel();
			}
			return retVal;
		}
Beispiel #2
0
        public static webModel.PromotionReward ToWebModel(this coreModel.PromotionReward reward)
        {
            var retVal = new webModel.PromotionReward();

            retVal.InjectFrom(reward);
            retVal.RewardType = reward.GetType().Name;
            if (reward.Promotion != null)
            {
                retVal.Promotion = reward.Promotion.ToWebModel();
            }
            return(retVal);
        }