@model List<ExempleMvc.Models.Personne>
@{ ViewBag.InitValueInCshtml = "ValueInCshtml"; }
<h2>@ViewBag.InitValueInCshtml</h2>
<h2>@ViewBag.InitValueInController</h2>
<h2>
<br />
<table cellpadding="5" cellspacing="5" border="1">
<tr>
<th>ID</th>
<th>Nom</th>
<th>Prénom</th>
<th>Pics</th>
</tr>
@foreach (var item in @Model)
{
<tr>
<td>@item.Id</td>
<td>@item.Nom</td>
<td>@item.Prenom</td>
<td><img src="@Url.Content("~/Img/" + item.Pics)" /></td>
</tr>
}
</table>
</h2>