protected function GenerateResponse() { try { $this->response = ContactosController::EditarCategoria(isset($_POST['id']) ? $_POST['id'] : null, isset($_POST['activa']) ? $_POST['activa'] : null, isset($_POST['descripcion']) ? $_POST['descripcion'] : null, isset($_POST['id_padre']) ? $_POST['id_padre'] : null, isset($_POST['nombre']) ? $_POST['nombre'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }