Exemplo n.º 1
0
        public IEnumerable <ExchangeCodeDetail> SelectGiftBag(int PageNumber, int PageSize, out int TotalCount)
        {
            DataTable dt = DALPromotion.SelectGiftBag(PageNumber, PageSize, out TotalCount);

            if (dt == null || dt.Rows.Count == 0)
            {
                return(null);
            }
            return(dt.Rows.OfType <DataRow>().Select(x => new ExchangeCodeDetail(x)));
        }