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

Create

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

CitiesClass


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