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

Create

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

PetsClass


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