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

Create

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

Blog_Post_Answers


@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@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.ActionLink("Back to List", "Index")