Exemplo n.º 1
0
        public static IEnumerable <GetPCodeModel> SelectGeCouponRulesByRuleID(int id)
        {
            var dt = DALPromotion.SelectGeCouponRulesByRuleID(id);

            if (dt == null || dt.Rows.Count <= 0)
            {
                return(new GetPCodeModel[0]);
            }
            return(dt.Rows.Cast <DataRow>().Select(row => new GetPCodeModel(row)));
        }