public ActionResult SelectDestination(SelectAccountVm model)
 {
     var ctx = Session["Context"] as TransferMoneyContext;
     ctx.Sink = 
         accountRepo.GetById(int.Parse(model.SelectedAccountId)) as TransferMoneySink;
     return View("SelectAmount", new SelectAmountVm());
 }
        public ActionResult SelectDestination(SelectAccountVm model)
        {
            var ctx = Session["Context"] as TransferMoneyContext;

            ctx.Sink =
                accountRepo.GetById(int.Parse(model.SelectedAccountId)) as TransferMoneySink;
            return(View("SelectAmount", new SelectAmountVm()));
        }
 public ActionResult SelectSource(SelectAccountVm model)
 {
     var ctx = Session["Context"] as TransferMoneyContext;
     ctx.Source = 
         accountRepo.GetById(int.Parse(model.SelectedAccountId)) as TransferMoneySource;
     return View("SelectDestination", 
                 new SelectAccountVm
                     {
                         SelectedAccountId = string.Empty,
                         Accounts = accountRepo.Accounts
                     });
 }
        public ActionResult SelectSource(SelectAccountVm model)
        {
            var ctx = Session["Context"] as TransferMoneyContext;

            ctx.Source =
                accountRepo.GetById(int.Parse(model.SelectedAccountId)) as TransferMoneySource;
            return(View("SelectDestination",
                        new SelectAccountVm
            {
                SelectedAccountId = string.Empty,
                Accounts = accountRepo.Accounts
            }));
        }