public EmployeeController() { //string nextForm = NextForm("Address"); // Load Linked List initialForms.AddLast(new FormViewData() { FormName = "Name", ViewName = "_nameView" }); initialForms.AddLast(new FormViewData() { FormName = "Address", ViewName = "_addressView" }); initialForms.AddLast(new FormViewData() { FormName = "Additional", ViewName = "_additionalView" }); //TODO set First and Last row to "True"; FormViewData nextRow = NextForm("Address"); nextRow = NextForm(nextRow.FormName); nextRow = NextForm(nextRow.FormName); nextRow = PreviousForm(nextRow.FormName); nextRow = PreviousForm(nextRow.FormName); nextRow = PreviousForm(nextRow.FormName); }
public PartialViewResult _PartialName(Employee employee) { //... //db.BookMasters.Add(one); //db.SaveChanges(); //if (!ModelState.IsValid) //{ // //return PartialView("Index"); // return PartialView("Index", employee); //} ViewData["FormViewData"] = new FormViewData() { Last = true }; return(PartialView("_PartialAddress", employee)); }