Esempio n. 1
0
 public ActionResult Transfer(string userName)
 {
     TransferViewModel vm = new TransferViewModel();
     vm.FromAccount = _service.ListAccounts(userName);
     vm.ToAccountNumbers = _service.ListAccounts();
     return View(vm);
 }
        // GET: Accounts/Transfer
        public ActionResult Transfer(string username)
        {
            var myAccounts = _service.ListAccounts(username);
            var allAccounts = _service.ListAccounts();

            var vm = new TransferViewModel();
            vm.allAccounts = allAccounts;
            vm.myAccounts = myAccounts;

            return View(vm);
        }