@model PostgreSqlDotnetCore.Models.BlogPostConsultation @{ ViewBag.Title = "Details"; } @*
Reply | UsersId | ||
---|---|---|---|
@Html.DisplayFor(modelItem => item.reply) | @Html.DisplayFor(model => item.usersid) | @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = item.BlogPostConsultationid, parentId = item.id }) | @if (item.usersid == ViewBag.CurrentUserId) {@Html.ActionLink("Edit", "Edit", "BlogPostAnswers", new { id = item.id }) @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id }) | }
@Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = Model.id, parentId = Model.id }) @Html.ActionLink("Back to List", "Index")
@if (Model.users_id == ViewBag.CurrentUserId) {@Html.ActionLink("Edit", "Edit", new { id = Model.id })
}