public static string PermissionTokenName(PermissionTokenContract token) { return PermissionTokenNames.ResourceManager.GetString(PermissionToken.GetNameById(token.Id)); }
public PermissionFlagEntry(PermissionToken permissionType, bool hasFlag, bool hasPermission) { PermissionType = new PermissionTokenContract(permissionType); HasFlag = hasFlag; HasPermission = hasPermission; }
public static string PermissionTokenName(PermissionTokenContract token) { var t = PermissionToken.GetById(token.Id); return PermissionTokenNames.ResourceManager.GetString(t.Name) ?? t.Name; }