public static void BuildPermission(Group group, string privilegeName) { var privilege = Privileges.SingleOrDefault(p => p.Name == privilegeName); Permissions.Add(new GroupPermission(group, privilege, "/employees/7004")); }
public static void BuildPermission(string granteeUri, string privilegeName) { var privilege = Privileges.SingleOrDefault(p => p.Name == privilegeName); Permissions.Add(new IndividualPermission(granteeUri, privilege, "/employees/7004")); }