I know there's other questions about this, but I want a better explanation about it.
I want to show a table with my Model.List and after POST I still need to access that list. Today this is not happening.
This is my cshtml:
@foreach (var student in Model.ListSchedulingDetails)
{
<tr>
<td width="150">
@Html.DisplayFor(modelItem => student.SchedulingDate)
</td>
<td width="250">
@Html.DisplayFor(modelItem => student.TeacherName)
</td>
<td width="250">
@Html.DisplayFor(modelItem => student.StudentName)
</td>
<td width="150">
@Html.DisplayFor(modelItem => student.SchedulingHour)
</td>
<td width="250">
@Html.DisplayFor(modelItem => student.SchedulingObservation)
</td>
</tr>
}
After POST, my Model.ListSchedulingDetails is null. What's happening?