コード例 #1
0
        /// <summary>
        /// 开始抽奖
        /// </summary>
        /// <param name="openId"></param>
        /// <returns></returns>
        public PrizeWinningDto DrawStart(string openId)
        {
            var prizeWinningDto = new PrizeWinningDto();

            using (var unitOfWork = new UnitOfWork())
            {
                prizeWinningDto = _weiXinPrizeService.DrawStart(openId);
                unitOfWork.Commit();
            }
            return(prizeWinningDto);
        }