Ignore:
Timestamp:
08/22/24 01:46:17 (5 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
72b1da2
Parents:
d6040ef
Message:

Аsync, access permission, and other fixes.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Views/City/Index.cshtml

    rd6040ef r57fc402  
    1616            @Html.DisplayNameFor(model => model.name)
    1717        </th>
    18    
     18
    1919        <th></th>
    2020
    2121    </tr>
    2222
    23 @foreach (var item in Model) {
    24     <tr>
    25         <td>
    26             @Html.DisplayFor(modelItem => item.name)
    27         </td>
    28      
     23    @foreach (var item in Model)
     24    {
     25        <tr>
     26            <td>
     27                @Html.DisplayFor(modelItem => item.name)
     28            </td>
    2929
    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 }
     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    }
    3738
    3839</table>
Note: See TracChangeset for help on using the changeset viewer.