コード例 #1
0
        /// <summary>
        /// Convert the FlightModel list int FlightDto list.
        /// </summary>
        /// <returns>Enomerator of FlightDto instances.</returns>
        private IEnumerable <FlightDto> GetFlightDtos()
        {
            var flights    = _flightsManager.GetAll();
            var flightDtos = (from flight in flights
                              select flight.ConvertToFlightDto()).ToList();

            return(flightDtos);
        }
コード例 #2
0
 public IEnumerable <FlightModel> Get()
 {
     return(_flightsManager.GetAll());
 }