public bool Intersect(AircraftReservation other)
        {
            if (other == null)
            {
                return(false);
            }

            if (other == this)
            {
                return(true);
            }
            if (other >= this || other <= this)
            {
                return(false);
            }
            return(true);
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            AircraftReservation other = (AircraftReservation)obj;

            if ((other.DateFrom >= this.DateFrom && other.DateFrom < this.DateTo ||
                 other.DateTo <= this.DateTo && other.DateTo > this.DateFrom) &&
                other?.AircraftId == this?.AircraftId)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }