1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
@model IEnumerable<e_bibliotheque_MVC.Models.VM_Auteur>
@{
ViewBag.Title = "ListerAuteurs";
}
<h2>Liste des auteurs</h2>
<table class="table table-striped table-hover">
<tr class="info">
<th>@Html.DisplayNameFor(model => model.Nom)</th>
<th>@Html.DisplayNameFor(model => model.auteurImage)</th>
<th>@Html.DisplayNameFor(model => model.Prenom)</th>
<th>@Html.DisplayNameFor(model => model.DateDeNaissance)</th>
</tr>
@foreach(var aut in Model)
{
<tr>
<td>@Html.DisplayFor(model => aut.Nom)</td>
<td>@Html.DisplayFor(model => aut.Prenom)</td>
<td>@Html.DisplayFor(model => aut.DateDeNaissance)</td>
<td>@Html.ActionLink("Détail d'un auteur", "AfficherAuteur", new { id = aut.Id_Auteur })</td>
</tr>
}
</table> |
Partager