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

Create a new one

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

Pet_CaresClass


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