public BankAccount CreateAccount(BankAccount account)
        {
            IEnumerable <Transaction> transactions = account.GetTransactions();

            foreach (Transaction tran in transactions)
            {
                _transactionService.AddTransaction(tran);
            }

            return(_repository.AddAccount(account));
        }