@model WebApplication1.Models.user @{ ViewBag.Title = "Edituser"; }

Edituser

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

user


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.ID)
@Html.LabelFor(model => model.displayname, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.displayname, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.displayname, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.role, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.ValidationMessageFor(model => model.role, "", new { @class = "text-danger" })
}
@Html.ActionLink("Back to List", "Index")