@model PostgreSqlDotnetCore.Models.BlogPostAnswers @{ ViewBag.Title = "Details"; }

Details

Blog_Post_Answers


@Html.DisplayNameFor(model => model.parent_id)
@Html.DisplayFor(model => model.parent_id)
@Html.DisplayNameFor(model => model.reply)
@Html.DisplayFor(model => model.reply)

@{ if(Model.blogPostAnswers.Count > 0) {

Replay under Answers


foreach (BlogPostAnswers item in Model.blogPostAnswers) {
@Html.DisplayNameFor(model => item.parent_id)
@Html.DisplayFor(model => item.parent_id)
@Html.DisplayNameFor(model => item.reply)
@Html.DisplayFor(model => item.reply)
}
} }

@Html.ActionLink("Edit", "Edit", new { id = Model.id }) | @* @Html.ActionLink("Back to List", "Index") *@ Back to List