示例#1
0
 public bool HasPerson(Passenger Passenger) =>
 BookingCollection.Any(
     op => op.Passenger != null && op.Passenger.Id == Passenger.Id);
示例#2
0
 public bool HasVoyage(Voyage voyage) =>
 BookingCollection.Any(
     r => r.Voyage != null &&
     r.Voyage.Id == voyage.Id);