public ActionResult Create([Bind(Include = "Id,Description,StartingBalance,CurrentBalance,Created,LowBalanceThreshold,HouseholdId,AccountTypeId")] AccountWithHouseVM model) { if (ModelState.IsValid) { wizard.CreateAccount(model, model.HouseholdId); db.SaveChanges(); return(RedirectToAction("Details", "Households", new { id = model.HouseholdId })); } return(View(model)); }
// GET: BankAccounts/Create public ActionResult Create(int houseId) { var createAccount = new AccountWithHouseVM { HouseholdId = houseId, BAccountType = bank.GetAccountTypeSelectList() }; return(View(createAccount)); }