コード例 #1
0
 public IEnumerable <BankDetails> GetBankDetails()
 {
     if (!CurrentUser.HasRole(UserRole.Member))
     {
         throw new DomainValidationException(Messages.ViewBankDetailsInsufficientSecurityClearance);
     }
     return(_bankDetailsRepository.GetBankDetails());
 }
コード例 #2
0
        public List <BankDetailsViewModel> GetAllBankDetails()
        {
            var dataModelList = _bankDetailsRepository.GetBankDetails();

            return(bankDetailsMapping.MapToViewList(dataModelList));
        }