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

Edit

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

Blog_Post_Answers


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.id)
@Html.LabelFor(model => model.parent_id, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.parent_id, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.parent_id, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.reply, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.reply, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.reply, "", new { @class = "text-danger" })
@*
@Html.LabelFor(model => model.user_id, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.user_id, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.user_id, "", new { @class = "text-danger" })
*@
}
@Html.ActionLink("Back to List", "Index")