コード例 #1
0
        public async Task <TicketDto> Handle(CommitTicketRequest request)
        {
            var ticket = await CreateTicket(request);

            await _walletService.SubtractMoney(ticket.Stake, WalletTransaction.WalletTransactionType.TicketCommit);

            await _bonusService.ApplyBonuses(ticket);

            return(_mapper.Map <TicketDto>(ticket));
        }