@using Bit.SharedWeb.Utilities @using Bit.Admin.Enums; @inject Bit.Admin.Services.IAccessControlService AccessControlService @model ProvidersModel @{ ViewData["Title"] = "Providers"; var canCreateProvider = AccessControlService.UserHasPermission(Permission.Provider_Create); }

Providers

@if (canCreateProvider) {
Create Provider
}
@if(!Model.Items.Any()) { } else { @foreach(var provider in Model.Items) { } }
Name Provider Type Status Created
No results to list.
@(!string.IsNullOrEmpty(provider.DisplayName()) ? provider.DisplayName() : "Pending") @provider.Type.GetDisplayAttribute()?.GetShortName() @provider.Status @provider.CreationDate.ToShortDateString()