Exemplo n.º 1
0
        /// <summary>
        /// 根据活动查询活动明细
        /// </summary>
        /// <param name="aid"></param>
        /// <returns></returns>
        public static QiangGouModel FetchQiangGouAndProductsTemp(Guid aid)
        {
            var dt = DALQiangGou.FetchQiangGouAndProductsFromTemp(aid);

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

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