public IActionResult Index()
        {
            var model = bankTransactionRepository.GetBankTransactionList();

            ViewData["Title"] = "Bank Transaktionen";
            return(View(model));
        }
Пример #2
0
        /// <summary>
        /// Load open bank transactions
        /// </summary>
        public List <BankTransaction> GetOpenBankTransactionList()
        {
            var transactions = transactionRepository
                               .GetTransactionList()
                               .Where(t => string.IsNullOrEmpty(t.BankTransactionId) == false)
                               .Select(t => t.BankTransactionId);

            var bankTransactions = bankTransactionRepository
                                   .GetBankTransactionList()
                                   .Where(b => b.Ignore == false && transactions.Contains(b.Id) == false)
                                   .ToList();

            return(bankTransactions);
        }