public ActionResult Edit(string acc) { BankAccountsDropdownView theView = myService.GetAccountsDropdown(acc); theView.selectedValue = 1; return(View(theView)); }
public BankAccountsDropdownView GetAccountsDropdown(string acc) { BankAccountsForDropdownResponse theResponse = new BankAccountsForDropdownResponse(); IEnumerable <BankAccount> accounts = _bankRepository.FindAll(); BankAccountsDropdownView theView = ViewMapper.CreateBankAccountDropdownViewFrom(accounts); theResponse.bankAccounts = theView; return(theResponse.bankAccounts); }