Ignore:
Timestamp:
08/28/24 21:41:13 (4 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
a850333
Parents:
118e414
Message:

Use of views

  1. Use of views in VetCenters.
  2. Ability to provide a response to a given response.
File:
1 edited

Legend:

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

    r118e414 re9bb9d1  
    11@using Microsoft.AspNetCore.Identity
    22@inject SignInManager<IdentityUser> SignInManager
    3 @model IEnumerable<PostgreSqlDotnetCore.Models.VetCenter>
     3@* IEnumerable<PostgreSqlDotnetCore.Models.VetCenter>*@
     4@model IEnumerable<PostgreSqlDotnetCore.Models.VetCenterWithCity>
     5
    46
    57@{
     
    2325    <tr>
    2426        <th>
    25             @Html.DisplayNameFor(model => model.name)
     27            @Html.DisplayNameFor(model => model.vet_center_name)
    2628        </th>
    2729        <th>
     
    4547        </th>
    4648        <th>
    47             @Html.DisplayNameFor(model => model.citiesid)
     49            @Html.DisplayNameFor(model => model.city_name)
    4850        </th>
    4951        <th></th>
     
    5456        <tr>
    5557            <td>
    56                 @Html.DisplayFor(modelItem => item.name)
     58                @Html.DisplayFor(modelItem => item.vet_center_name)
    5759            </td>
    5860            <td>
     
    7678            </td>
    7779            <td>
    78                 @Html.DisplayFor(modelItem => item.citiesid)
     80                @Html.DisplayFor(modelItem => item.city_name)
    7981            </td>
    8082            <td>
     
    8587            </td>
    8688
    87            
    8889
    89          @*   @if ((SignInManager.IsSignedIn(User)))
    90             {
    91                 <td>
    9290
    93                     @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
    94                     @Html.ActionLink("Details", "Details", new { id = item.id }) |
    95                     @Html.ActionLink("Delete", "Delete", new { id = item.id })
     91            @*   @if ((SignInManager.IsSignedIn(User)))
     92        {
     93        <td>
    9694
    97                 </td>
    98             }
    99            *@
     95        @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
     96        @Html.ActionLink("Details", "Details", new { id = item.id }) |
     97        @Html.ActionLink("Delete", "Delete", new { id = item.id })
     98
     99        </td>
     100        }
     101        *@
    100102
    101103            @* Додадете условие за проверка на улогите *@
Note: See TracChangeset for help on using the changeset viewer.