public string getPNR() { string _pnr = ""; try { objPNR.RetrieveCurrent(objSession); _pnr = objPNR.Header.RecordLocator; } catch (Exception ex) { _errorStr = ex.Message; } return(_pnr); }
public int getItineraryCount(string strPNR) { PNR objPNR = new PNR(); //List<string> pnrsData = new List<string>(strPNR.Split(',')); //objPNR.RetrievePNR(objSession, "rt" + strPNR); objPNR.RetrieveCurrent(objSession); int itineraryNum = 0; foreach (s1aPNR.AirSegment _ItineraryElement in objPNR.AirSegments) { itineraryNum += 1; } return(itineraryNum); }