Exemple #1
0
 /// <summary>
 /// Creates an enum mapping profile so the db and application definition stay in synch.
 /// </summary>
 /// <param name="visibleToUser">
 /// Whether the user is allowed to select this as a permission when creating roles
 /// </param>
 public PermissionSeedDataAttribute(string name, PermissionCategoryEnum cat, string description = "",
                                    bool visibleToUser = true)
 {
     Name = name;
     PermissionCategory = cat;
     Description        = description;
 }
 public PermissionCategory(PermissionCategoryEnum pcEnum) => Id = pcEnum;