Esempio n. 1
0
 /// <summary>
 /// Get the flight details for a given flight id
 /// </summary>
 /// <parameter name="flightId"></parameter>
 /// <exception cref="FlightManagerException">Thorwn when unable to get flights</exception>
 /// <returns>Returns a flight for a given flight id</returns>
 public Flight GetFlight(int flightId)
 {
     try
     {
         return(flightDAO.GetFlight(flightId));
     }
     catch (FlightDAOException ex)
     {
         throw new FlightManagerException("Unable to get flight details", ex);
     }
 }