main
Last change
on this file since 2aea0fd was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
720 bytes
|
Line | |
---|
1 | @model IEnumerable<PostgreSqlDotnetCore.Models.CitiesClass>
|
---|
2 |
|
---|
3 | @{
|
---|
4 | ViewBag.Title = "CitiesClass";
|
---|
5 | }
|
---|
6 |
|
---|
7 | <h2>CitiesClass</h2>
|
---|
8 |
|
---|
9 | <p>
|
---|
10 | @Html.ActionLink("Create New", "Create")
|
---|
11 | </p>
|
---|
12 | <table class="table">
|
---|
13 | <tr>
|
---|
14 |
|
---|
15 | <th>
|
---|
16 | @Html.DisplayNameFor(model => model.name)
|
---|
17 | </th>
|
---|
18 |
|
---|
19 | <th></th>
|
---|
20 |
|
---|
21 | </tr>
|
---|
22 |
|
---|
23 | @foreach (var item in Model) {
|
---|
24 | <tr>
|
---|
25 | <td>
|
---|
26 | @Html.DisplayFor(modelItem => item.name)
|
---|
27 | </td>
|
---|
28 |
|
---|
29 |
|
---|
30 | <td>
|
---|
31 | @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
|
---|
32 | @Html.ActionLink("Details", "Details", new { id = item.id }) |
|
---|
33 | @Html.ActionLink("Delete", "Delete", new { id = item.id })
|
---|
34 | </td>
|
---|
35 | </tr>
|
---|
36 | }
|
---|
37 |
|
---|
38 | </table>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.