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

Create

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

VetCenter


@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.LabelFor(model => model.adress, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.adress, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.adress, "", 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.workinghours, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.workinghours, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.workinghours, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.phonenumber, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.phonenumber, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.phonenumber, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.latitude, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.latitude, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.latitude, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.longitude, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.longitude, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.longitude, "", new { @class = "text-danger" })
@*
@Html.LabelFor(model => model.citiesid, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.citiesid, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.citiesid, "", new { @class = "text-danger" })
*@
}
@Html.ActionLink("Back to List", "Index")