protected function GenerateResponse() { try { $this->response = ServiciosController::ProductosAgregarOrden(isset($_GET['id_orden_de_servicio']) ? $_GET['id_orden_de_servicio'] : null, isset($_GET['productos']) ? json_decode($_GET['productos']) : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }