CSHTML FOREACH
@foreach (var item in Model.Foos)
{
<div>@item.Bar</div>
}
Reindert
@foreach (var item in Model.Foos)
{
<div>@item.Bar</div>
}
@for (int i=0; i < Model.allemp.Count;i++)
{
<tr>
<td>@Html.Label(Model.allemp[i])</td>
<td>@Html.Label(Model.alldept[i])</td>
</tr>
}