28 lines
598 B
Plaintext
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> |