public IEnumerable <BankDetails> GetBankDetails() { if (!CurrentUser.HasRole(UserRole.Member)) { throw new DomainValidationException(Messages.ViewBankDetailsInsufficientSecurityClearance); } return(_bankDetailsRepository.GetBankDetails()); }
public List <BankDetailsViewModel> GetAllBankDetails() { var dataModelList = _bankDetailsRepository.GetBankDetails(); return(bankDetailsMapping.MapToViewList(dataModelList)); }