//ADD: New Account public ActionResult NewChartofAccount() { var viewModel = new NewChartofAccountVM(); viewModel.AccountTypeSelection = new SelectList(Enum.GetValues(typeof(AccountType)).Cast<AccountType>().ToList()); viewModel.NewAcccount = null; return View(viewModel); }
public ActionResult NewChartofAccount(NewChartofAccountVM viewModel) { var mger = new AccountManager(); mger.AddAccount(viewModel.NewAcccount); return RedirectToAction("ChartOfAccountList"); }