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