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