예제 #1
0
        public Currency GetBalanceByCredentials(AuthenticatedOperation op)
        {
            var initiaterAccount = _accountRepository.GetBankAccountByLastToken(op.Token);

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

            return(initiaterAccount);
        }