Ignore:
Timestamp:
08/23/24 15:40:14 (5 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
e9bb9d1
Parents:
72b1da2
Message:

fix access

implement multiple access pages with different roles
optimize present three structure of BlogPost and Answer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Views/Blog/Details.cshtml

    r72b1da2 r118e414  
    8080                    @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) |
    8181                    @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id })
     82
     83                    @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = item.BlogPostConsultationid, parentId = item.id })
    8284                </td>
    8385            </tr>
     
    8789</div>
    8890<p>
     91    @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = Model.id, parentId = Model.id })
    8992    @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
    9093    @Html.ActionLink("Back to List", "Index")
Note: See TracChangeset for help on using the changeset viewer.