private void ValidateFlightChange(FlightRescheduledDTO flightRescheduledDto)
 {
     if (flightRescheduledDto.NewDepartureTime == DateTime.MinValue)
     {
         throw new InvalidFlightDetailsException("NewDepartureTime cannot be the year 0000");
     }
 }
        public void UpdateFlightDate(FlightRescheduledDTO flightRescheduledDto)
        {
            ValidateFlightChange(flightRescheduledDto);

            // do some business logic, for example, one of the following:
            // perhaps update the flight in the application's database
            // notify passengers of the change
            // notify crew of the change
        }