public static bool IsPaxOnBoard(this Segment segment, short passengerNumber)
 {
     if (segment.PaxSegments != null && segment.PaxSegments.Length > 0)
     {
         for (int index = 0; index < segment.PaxSegments.Length; ++index)
         {
             PaxSegment paxSegment = segment.PaxSegments[index];
             if ((int)paxSegment.PassengerNumber == (int)passengerNumber)
             {
                 if (paxSegment.LiftStatus == LiftStatus.Boarded)
                 {
                     return(true);
                 }
                 break;
             }
         }
     }
     return(false);
 }
 public static bool IsPaxCheckedIn(this Segment segment, short passengerNumber)
 {
     if (segment.PaxSegments != null && segment.PaxSegments.Length > 0)
     {
         for (int index = 0; index < segment.PaxSegments.Length; ++index)
         {
             PaxSegment paxSegment = segment.PaxSegments[index];
             if (paxSegment.PassengerNumber == passengerNumber)
             {
                 if (paxSegment.LiftStatus != LiftStatus.Default)
                 {
                     return(true);
                 }
                 break;
             }
         }
     }
     return(false);
 }