Skip to content

Instantly share code, notes, and snippets.

@conectado
Last active January 23, 2018 16:07
Show Gist options
  • Select an option

  • Save conectado/da7e60bd82671fb02d1658c7948524ca to your computer and use it in GitHub Desktop.

Select an option

Save conectado/da7e60bd82671fb02d1658c7948524ca to your computer and use it in GitHub Desktop.
@model IEnumerable<yourComplaint.Models.Complaint>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.Mail)
</th>
<th>
@Html.DisplayNameFor(model => model.Company)
</th>
<th>
@Html.DisplayNameFor(model => model.Complain)
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.Mail)
</td>
<td>
@Html.DisplayFor(modelItem => item.Company)
</td>
<td>
@Html.DisplayFor(modelItem => item.Complain)
</td>
</tr>
}
</tbody>
</table>
<a href="Complaint/Create">Create Complaint</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment