I have 5 classes:
1) EmployeeMainTable.cs
(Employeeid
is primary key and employee id is foreign key for rest of classes)
2) EmployeeFamilyTable.cs
3) previousEmployeement.cs
4) employeeaddress.cs
5) employeeEducation.cs
Each class contains respective properties. Now what I want is to do for each class. I have created 5 views to enter data and each view contain submit button to go to next view.
My problem is I want to save all models at once when I click finish button in last view
please understand problem once am using mvc 4
(Answer posted HERE is closely related to this one, but not working. I am getting error in view )
Line 13: {
Line 14:
Line 15: @Html.HiddenFor(model=>ViewBag.FirstStepModel)
Line 16: @Html.EditorFor(model => model.SecondStepProp)
Line 17:
Compiler Error Message: CS1963: An expression tree may not contain a dynamic operation
I'm stuck, and really need help. Thanks