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)); }
public async Task <BalanceDataModel> GetBalanceAsync(string accountNumber) { var user = await _userService.GetAsync(accountNumber); var bankProvider = BankProviderFactory.GetBankProvider(user.BankName); return(await bankProvider.GetBalanceAsync(accountNumber)); }