public override CheckBalanceResponse Handle(CheckBalanceRequest request) { var response = CreateResponse(); var account = _repository.Accounts().First(a => a.AccountNumber.Equals(request.AccountNumber)); response.Account = _entityMapper.MapToDto(account); return(response); }
public IEnumerable <Account> Accounts() { return(accountRepository.Accounts()); }