Example #1
0
        public IEnumerable <WeatherContract> GetWeather(DateTime dateTime, int cityCode)
        {
            var client = new WeatherForecastServiceClient(EndpointConfigurationName);

            return(client.GetWeather(dateTime, cityCode));
        }
Example #2
0
        public IEnumerable <CityContract> GetAllCities()
        {
            var client = new WeatherForecastServiceClient(EndpointConfigurationName);

            return(client.GetAllCities());
        }