Beispiel #1
0
        public IEnumerable <ExchangeCodeDetail> SelectPromotionDetails(int pkid)
        {
            DataTable dt = DALPromotion.SelectPromotionDetails(pkid);

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