public IEnumerable <DepartureArrivalDelayAtOriginDTO> GetDepartureArrivalAtOrigins(List <string> origins)
        {
            var allOrigins = new OriginsRequest();

            var mappedOrigins = _mapper.Map <List <OriginRequest> >(origins);

            allOrigins.Origins.AddRange(mappedOrigins);

            var response = flightsClient.GetDepartureArrivalDelayAtOrigin(allOrigins);

            var departureArrivalDelays = _mapper.Map <List <DepartureArrivalDelayAtOriginDTO> >(response.DepartureArrivalDelay);

            return(departureArrivalDelays);
        }
        public IEnumerable <ObservationsAtOriginDTO> GetObservationsAtOrigins(List <string> origins)
        {
            var allOrigins = new OriginsRequest();

            var mappedOrigins = _mapper.Map <List <OriginRequest> >(origins);

            allOrigins.Origins.AddRange(mappedOrigins);

            var response = weathersClient.GetWeatherObservationsAtOrigins(allOrigins);

            var observationsAtOrigins = _mapper.Map <List <ObservationsAtOriginDTO> >(response.Observations);

            return(observationsAtOrigins);
        }
        public IEnumerable <TemperatureAtOriginWithOriginDTO> GetTemperatureAtOrigins(List <string> origins)
        {
            var allOrigins = new OriginsRequest();

            var mappedOrigins = _mapper.Map <List <OriginRequest> >(origins);

            allOrigins.Origins.AddRange(mappedOrigins);

            var response = weathersClient.GetTemperatureAtOrigins(allOrigins);

            var temperatureAtOrigins = _mapper.Map <List <TemperatureAtOriginWithOriginDTO> >(response.AllOriginTemperatures);

            return(temperatureAtOrigins);
        }
        public IEnumerable <DailyMeanTemperatureAtOriginDTO> GetDailyMeanTemperatureAtOrigins(List <string> origins)
        {
            var allOrigins = new OriginsRequest();

            var mappedOrigins = _mapper.Map <List <OriginRequest> >(origins);

            allOrigins.Origins.AddRange(mappedOrigins);

            var response = weathersClient.GetDailyMeanTemperatureAtOrigins(allOrigins);

            var dailyMeanTemperatureAtOrigin = _mapper.Map <List <DailyMeanTemperatureAtOriginDTO> >(response.DailyMeanTemperatures);

            return(dailyMeanTemperatureAtOrigin);
        }