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