/// <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); }
public IEnumerable <FlightModel> Get() { return(_flightsManager.GetAll()); }