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

Edit

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

Pet_CaresClass


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.id)
@Html.LabelFor(model => model.title, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.title, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.title, "", 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.start_date, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.start_date, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.start_date, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.dateending, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.dateending, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.dateending, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.vetcentersid, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(model => model.vetcentersid, (SelectList)ViewBag.VetCenters, "Select VetCenter", new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.vetcentersid, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.pet_id, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(model => model.pet_id, (SelectList)ViewBag.Pets, "Select Pet", new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.pet_id, "", new { @class = "text-danger" })
@*
@Html.LabelFor(model => model.vetcentersid, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.vetcentersid, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.vetcentersid, "", new { @class = "text-danger" })
*@ @*
@Html.DropDownList("vetcentersid", (SelectList)ViewBag.VetCenters, "Select VetCenter", new { @class = "form-control" })
*@

}
@Html.ActionLink("Back to List", "Index")