public override IEnumerable <CommodityDiscount> Download(string storeId, string entityType)
        {
            var ids = CommodityPromotionService.GetEffectiveId(storeId).ToList();

            return(CurrentRepository.FindList(o => ids.Contains(o.CommodityId)).ToList());
        }
Esempio n. 2
0
        public static IEnumerable <string> GetEffectiveId(string storeId)
        {
            var ids = CommodityPromotionService.GetEffectiveId(storeId).ToList();

            return(CurrentRepository.FindList(o => ids.Contains(o.CommodityId)).Select(o => o.GiftId).ToList());
        }