public bool DeleteRole(string roleName, bool throwOnPopulatedRole) { if (RoleExists(roleName)) { return(_roleDAO.DeleteRole(roleName, true)); } else { throw new ArgumentException("No such Role"); } }
public int DeleteRole(string roleName, string strDomain) { try { return(roleDAO.DeleteRole(roleName, strDomain)); } catch (Exception ex) { throw new Exception(ex.Message); } }