-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.cshtml
36 lines (34 loc) · 867 Bytes
/
index.cshtml
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
35
36
@page
@model MyServerApp.Pages.Users.IndexModel
@{
ViewData["Title"] = "Users";
}
<h1>Users</h1>
<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Users[0].Username)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Users)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Username)
</td>
<td>
<a asp-page="Edit" asp-route-id="@item.Id">Edit</a> |
<a asp-page="Details" asp-route-id="@item.Id">Details</a> |
<a asp-page="Delete" asp-route-id="@item.Id">Delete</a>
</td>
</tr>
}
</tbody>
</table>