Beispiel #1
0
        private static int SaveAllTransactions(EveSSO.Wallet.Transactions.Transaction[] transactions)
        {
            int result         = 0;
            var transactionDAO = new TransactionDAO();

            foreach (var transaction in transactions)
            {
                //See if it exists
                var existingTransaction = transactionDAO.GetTransaction(transaction.transaction_id);
                if (existingTransaction == null)
                {
                    transactionDAO.Add(transaction);
                    result++;
                }
            }
            return(result);
        }