예제 #1
0
        public async Task <List <TransactionDataModel> > GetTransactionsAsync(string accountNumber)
        {
            var user = await _userService.GetAsync(accountNumber);

            var bankProvider = BankProviderFactory.GetBankProvider(user.BankName);

            return(await bankProvider.GetTransactionsAsync(accountNumber));
        }
예제 #2
0
        public async Task <BalanceDataModel> GetBalanceAsync(string accountNumber)
        {
            var user = await _userService.GetAsync(accountNumber);

            var bankProvider = BankProviderFactory.GetBankProvider(user.BankName);

            return(await bankProvider.GetBalanceAsync(accountNumber));
        }