public ActionResult Edit(string acc)
        {
            BankAccountsDropdownView theView = myService.GetAccountsDropdown(acc);

            theView.selectedValue = 1;

            return(View(theView));
        }
Esempio n. 2
0
        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);
        }