Exemple #1
0
 /// <summary>
 /// Add the flight with seats for different travel class
 /// </summary>
 /// <param name="flight"></param>
 /// <exception cref="FlightManagerException">Thorwn when unable to add a flight</exception>
 /// <returns>Returns the status of adding a flight</returns>
 public bool AddFlight(Flight flight)
 {
     try
     {
         return(flightDAO.AddFlight(flight));
     }
     catch (FlightDAOException ex)
     {
         throw new FlightManagerException("Unable to add flight", ex);
     }
 }