public BankTransactionForeignCurrencyModel DeleteCreditCardTransaction(long id)
        {
            var transaction = BankTransactionForeignCurrencyRepository.GetById(id);

            BankTransactionForeignCurrencyRepository.Delete(transaction);
            BankTransactionForeignCurrencyRepository.Save();
            return(Mapper.Map <BankTransactionForeignCurrencyModel>(transaction));
        }
        public IEnumerable <BankTransactionForeignCurrencyModel> GetCreditCardTransactionsForAccountId(long id)
        {
            var transactions = BankTransactionForeignCurrencyRepository.GetAllForAccountId(id).OrderByDescending(entity => entity.AvailabilityDate);

            return(Mapper.Map <IEnumerable <BankTransactionForeignCurrencyModel> >(transactions));
        }