protected function GenerateResponse() { try { $this->response = PersonalYAgentesController::EliminarRol(isset($_POST['id_rol']) ? $_POST['id_rol'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }