@model Church.Net.Entity.NewVisitor @{ ViewBag.Title = "Create"; }

Create

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

NewVisitor


@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Id, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Id, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Id, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.FirstName, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.FirstName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.FirstName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.LastName, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.LastName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.LastName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Gender, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EnumDropDownListFor(model => model.Gender, htmlAttributes: new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Gender, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Address, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Address, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Phone, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Phone, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Phone, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ComunityAppId, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.ComunityAppId, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.ComunityAppId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.VisitingDate, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.VisitingDate, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.VisitingDate, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Note, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" })
}
@Html.ActionLink("Back to List", "Index")