protected function GenerateResponse() { try { $this->response = ServiciosController::NuevaClasificacion(isset($_GET['nombre']) ? $_GET['nombre'] : null, isset($_GET['activa']) ? $_GET['activa'] : 1, isset($_GET['descripcion']) ? $_GET['descripcion'] : null, isset($_GET['garantia']) ? $_GET['garantia'] : null, isset($_GET['impuestos']) ? json_decode($_GET['impuestos']) : null, isset($_GET['retenciones']) ? json_decode($_GET['retenciones']) : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }