@model Project_Unite.Models.Role @{ ViewBag.Title = "Create"; }

Create

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

Role


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