Ejemplo n.º 1
0
        public IEnumerable <ExchangeCodeDetail> UpdateOEM(int pkid)
        {
            DataTable dt = DALPromotion.UpdateOEM(pkid);

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