46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
@model IEnumerable<WebApplication1.Models.user>
|
|
|
|
@{
|
|
ViewBag.Title = "allusers";
|
|
}
|
|
|
|
<h2>allusers</h2>
|
|
|
|
<p>
|
|
@Html.ActionLink("Create New", "Create")
|
|
</p>
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.usename)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.password)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.displayname)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.usename)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.password)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.displayname)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Edit", "Edituser", new { id=item.ID }) |
|
|
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
|
|
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
|
|
</td>
|
|
</tr>
|
|
}
|
|
|
|
</table>
|