Index.cshtml
1.1 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
@model IEnumerable<Maps.Entities.RoadPassport>
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
</head>
<body>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Begin)
</th>
<th>
@Html.DisplayNameFor(model => model.End)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Begin)
</td>
<td>
@Html.DisplayFor(modelItem => item.End)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.RoadPassportId">Edit</a> |
<a asp-action="Details" asp-route-id="@item.RoadPassportId">Details</a> |
<a asp-action="Delete" asp-route-id="@item.RoadPassportId">Delete</a>
</td>
</tr>
}
</tbody>
</table>
</body>
</html>