示例#1
0
 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));
 }
示例#2
0
 public static void Delete(string role)
 {
     DBUserRole.DeleteByRole(role);
 }
示例#3
0
 public static void Delete(string containerKey, string role)
 {
     DBUserRole.DeleteByRole(containerKey, role);
 }