public static function excluirEvento($args) { $id_evento = $args['id_evento']; $rs = empresaBusiness::getAllEmpresasByEvento($id_evento); if ($rs == false) { dbManager::deleteByFilter(new Evento(), ' id_evento = ' . $id_evento); return true; } else { return false; } }