public ActionResult CreateUser() { ViewBag.AccountyType_Id = new SelectList(accountTypeRepository.GetAll(), "Id", "Type"); //ViewBag.cataType = userRepository.GetType(); return(View()); }
public async Task <AdminAccountTypeViewModel> Handle(GetAdminAccountTypeQuery request, CancellationToken cancellationToken) { AdminAccountTypeViewModel model = new AdminAccountTypeViewModel { AccountTypes = await _repository.GetAll() }; return(model); }
public async Task <CustomersSettingsViewModel> Handle(GetCustomersSettingsQuery request, CancellationToken cancellationToken) { CustomersSettingsViewModel model = new CustomersSettingsViewModel { AccountTypes = await _accountTypeRepository.GetAll() }; return(model); }
public void GetAll() { var allItems = _repository.GetAll(); _output.WriteLine($"4 = {allItems.Count()}"); foreach (var item in allItems) { _output.WriteLine($"\t{item.Id}. {item.AccountName}"); } Assert.Equal(4, allItems.Count()); }
public async Task <CreateAccountViewModel> Handle(CreateAccountQuery request, CancellationToken cancellationToken) { int customerId = await _userRepository.GetCustomerId(); CreateAccountViewModel model = new CreateAccountViewModel { AccountTypes = await _accountTypeRepository.GetAll() }; return(model); }
public List <AccountType> GetTypes() { return(ExecuteFaultHandledOperation(() => { List <AccountType> account_types = _cache.Get(CacheKeys.AccountTypes) as List <AccountType>; if (account_types == null) { Log.Debug("AccountTypeRepository GetAll called"); account_types = new List <AccountType>(); var account_type_data = _repo_acct_type.GetAll(); foreach (var account_type in account_type_data) { account_types.Add(_acct_es.Map(account_type)); } _cache.Set(CacheKeys.AccountTypes, account_types); Log.Debug("AccountTypeRepository GetAll complete"); } return account_types; //return null; })); }
public ActionResult Index() { ViewBag.AccountyType_Id = new SelectList(accountTypeRepository.GetAll(), "Id", "Type"); return(View()); }
// GET: AccountType public ActionResult Index() { return(View(accountTypeRepository.GetAll())); }
public async Task <List <AccountTypeDTO> > Handle(GetAccountTypesListQuery request, CancellationToken cancellationToken) { return(_mapper.Map <List <AccountTypeDTO> >(await _repository.GetAll())); }
public List <AccountTypeViewModel> GetAll() { return(_mapper.Map <List <AccountTypeViewModel> >(_accountTypeRepository.GetAll())); }