2021-06-16 15:50:26 +10:00

28 lines
598 B
Plaintext

@model IEnumerable<AttributeRoutingDemoInMVC.Models.Teacher>
@{
ViewBag.Title = "Get Teachers";
}
<h2>GetTachers</h2>
<teacher class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Id)
</th>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
</tr>
}
</teacher>