@model WebApplication1.Models.response @{ ViewBag.Title = "Edit"; string priority = ""; if (ViewBag.targetTicket.priority == 1) { priority = "Urgant"; } else if (ViewBag.targetTicket.priority == 2) { priority = "Important"; } else { priority = "Normal"; } }

Edit

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

response


Title
Sender
Priority
Content

@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.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")