Ejemplo n.º 1
0
        public static QiangGouForCache SelectQiangGouToCache(Guid ActivityID)
        {
            var dt = DALQiangGou.SelectQiangGouToCache(ActivityID);

            if (dt == null || dt.Rows.Count == 0)
            {
                return(null);
            }
            var model = dt.ConvertTo <QiangGouForCache>()?.FirstOrDefault();

            model.Products = dt.ConvertTo <QiangGouProductForCache>();
            return(model);
        }