public Currency GetBalanceByCredentials(AuthenticatedOperation op) { var initiaterAccount = _accountRepository.GetBankAccountByLastToken(op.Token); if (initiaterAccount != null) { return(this.GetBalanceOfAccount(initiaterAccount)); } else { throw new Exception("UnAuth"); } }
public BankAccount GetBankAccountByCredentials(AuthenticatedOperation op) { var initiaterAccount = _accountRepository.GetBankAccountByLastToken(op.Token); return(initiaterAccount); }