public static int Add(string containerKey, string role, int principalId, UserRoleTypeEnum type) { if (type == UserRoleTypeEnum.SingleValue) { DBUserRole.DeleteByRole(containerKey, role); } return(DBUserRole.Add(principalId, containerKey, role)); }
public static void Delete(string role) { DBUserRole.DeleteByRole(role); }
public static void Delete(string containerKey, string role) { DBUserRole.DeleteByRole(containerKey, role); }