Пример #1
0
        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);
        }
Пример #2
0
 public IEnumerable <Account> Accounts()
 {
     return(accountRepository.Accounts());
 }