Good morning everyone passes the following I have to show a view with the data of a database of sql filtered by a variable that I am bringing from session and I am dealing with the following
@model IEnumerable<Examen.Models.Calificacion>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Cedula)
</th>
<th>
@Html.DisplayNameFor(model => model.Fecha)
</th>
<th>
@Html.DisplayNameFor(model => model.Nota)
</th>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Cedula)
</td>
<td>
@Html.DisplayFor(modelItem => item.Fecha)
</td>
<td>
@Html.DisplayFor(modelItem => item.Nota)
</td>
</tr>
}
</table>
I have already declared a class that contains me a cedula, date and note
If you have any other solution I would appreciate it