AdjustTransactionResponse ICommonGameActionsProvider.AdjustTransaction(AdjustTransaction request)
        {
            using (var scope = _transactionScope.GetTransactionScope())
            {
                var playerId = GetPlayerIdFromToken(request);

                var result = request.Transactions.Select(tx => AdjustTransaction(tx)).ToList();

                var balance = _gameQueries.GetPlayableBalance(playerId);

                scope.Complete();

                return(new AdjustTransactionResponse
                {
                    Balance = balance.Balance,
                    CurrencyCode = balance.CurrencyCode,
                    Transactions = result
                });
            }
        }
 public AdjustTransactionResponse Post(AdjustTransaction request)
 {
     return(GameActions.AdjustTransaction(request));
 }
        public async Task <AdjustTransactionResponse> Post(AdjustTransaction request)
        {
            await ValidateTokenData(request);

            return(await GameActions.AdjustTransaction(request));
        }