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