@model WebApplication1.Models.ticket @{ ViewBag.Title = "Edit"; }

Edit

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

ticket


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.ID)
Title
Content

@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.content, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.TextAreaFor(model => model.content, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.content, "", new { @class = "text-danger" })
}
@Html.ActionLink("Back to List", "Index")