public async Task <AccountHolderResource> Handle(QueryAccountHolder query)
        {
            var result = _repository
                         .GetAll()
                         .ByCheckintAccount(new CheckingAccount(
                                                query.AccountNumber,
                                                query.AccountDigit)
                                            );

            return(result != null ? await CreateResource(result) : default(AccountHolderResource));
        }
 public IActionResult Index()
 {
     return(View(db.GetAll()));
 }
 public List <AccountHolder> GetAll()
 {
     return(_accountHolderRepository.GetAll());
 }
Example #4
0
 public List <AccountHolder> GetAll()
 {
     return(_accountHolderRepository.GetAll());
     // return _applicationContext.AccountHolders.ToList();
     // return _accountHolderRepository.AccountHolders.GetAll();
 }