@model TightWiki.Models.ViewModels.Admin.RolesViewModel @using TightWiki.Library @using TightWiki.Models @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

Roles

Global configuration for security roles and membership.

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @using (Html.BeginForm(null, null, FormMethod.Post, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) { @Html.AntiForgeryToken() @if (Model.Roles.Count > 0) { @foreach (var role in Model.Roles) { }
Name Description
@role.Name @role.Description
} else {
There are no security roles configured.
} }