@model MALDFGASSURANCE.Models.AspNetUserRoles @{ ViewBag.Title = "Create"; Layout = "~/Views/Shared/_Connecte.cshtml"; }

ADMINISTRATION

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

Attribution de rôles aux utilisateurs


@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.UserId, "EMAIL DE L'UTILISATEUR", htmlAttributes: new { @class = "control-label col-md-12" }) @Html.DropDownList("UserId", null, htmlAttributes: new { @class = "form-control select-2 h-auto form-control-solid py-4 px-8", @id = "kt_select2_10" }) @Html.ValidationMessageFor(model => model.UserId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.RoleId, "ROLE", htmlAttributes: new { @class = "control-label col-md-12" }) @Html.DropDownList("RoleId", null, htmlAttributes: new { @class = "form-control select-2 h-auto form-control-solid py-4 px-8",@id = "kt_select2_2" }) @Html.ValidationMessageFor(model => model.RoleId, "", new { @class = "text-danger" })
}