public IEnumerable <Promotion> GetPromotion(PromotionRequest req)
        {
            var pService   = UoW.Service <IPromotionService>();
            var promotions = pService.GetActive();

            if (req.Code != null)
            {
                promotions = promotions.Where(p => p.Code == req.Code);
            }
            return(promotions);
        }
        public IEnumerable <ValidationRule> GetValidationRule(ValidationRequest req)
        {
            var vService = UoW.Service <IValidationRuleService>();
            var vRule    = vService.GetActive();

            if (req.ID != null)
            {
                vRule = vRule.Where(v => v.ID == req.ID);
            }
            return(vRule);
        }
        public IEnumerable <Campaign> GetCampaign()
        {
            var cService = UoW.Service <ICampaignService>();

            return(cService.GetActive());
        }