source: PostgreSqlDotnetCore/Views/City/Index.cshtml

main
Last change on this file was 57fc402, checked in by ElenaMoskova <elena.moskova99@…>, 3 months ago

Аsync, access permission, and other fixes.

Regulation of access permissions. Which fields can be accessed by different users.

  • Property mode set to 100644
File size: 763 bytes
RevLine 
[2aea0fd]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>
[57fc402]18
[2aea0fd]19 <th></th>
20
21 </tr>
22
[57fc402]23 @foreach (var item in Model)
24 {
25 <tr>
26 <td>
27 @Html.DisplayFor(modelItem => item.name)
28 </td>
29
30
31 <td>
32 @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
33 @Html.ActionLink("Details", "Details", new { id = item.id }) |
34 @Html.ActionLink("Delete", "Delete", new { id = item.id })
35 </td>
36 </tr>
37 }
[2aea0fd]38
39</table>
Note: See TracBrowser for help on using the repository browser.