Пример #1
0
 public bool DeleteRole(string roleName, bool throwOnPopulatedRole)
 {
     if (RoleExists(roleName))
     {
         return(_roleDAO.DeleteRole(roleName, true));
     }
     else
     {
         throw new ArgumentException("No such Role");
     }
 }
Пример #2
0
 public int DeleteRole(string roleName, string strDomain)
 {
     try
     {
         return(roleDAO.DeleteRole(roleName, strDomain));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }