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

Edit

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

PetsClass


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.id)
@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.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")