예제 #1
0
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public GroupBuyingInfo Create(GroupBuyingInfo info)
        {
            // 验证团购信息
            ValidateEntity(info);

            var ts = new TransactionScope();

            using (ts)
            {
                // 创建团购信息
                info.SysNo = m_GroupBuyingDA.Create(info);

                // 创建价格信息
                m_GroupBuyingDA.CreateProductGroupBuyingPrice(info.SysNo, 1, info.GroupBuyPrice, 0, 0);


                ts.Complete();
            }

            return(info);
        }