private void AddFeed() { BTBWeatherFeedInfo objBTBYahooWeather = new BTBWeatherFeedInfo(); BTBWeatherFeedController objCtlBTBYahooWeather = new BTBWeatherFeedController(); //load info object with relavent data objBTBYahooWeather.WeatherId = ItemId; objBTBYahooWeather.ModuleId = ModuleId; BTBWeatherFeedController.TemperatureScale tempScale; if (rbTempC.Checked) { tempScale = BTBWeatherFeedController.TemperatureScale.Celsius; } else { tempScale = BTBWeatherFeedController.TemperatureScale.Fahrenheit; } objBTBYahooWeather.Url = objCtlBTBYahooWeather.CreateFeedUrl(txtFeedCode.Text, tempScale); objBTBYahooWeather.WeatherId = DataProvider.AddBTBWeatherFeed(objBTBYahooWeather); objCtlBTBYahooWeather.UpdateWeatherFeed(objBTBYahooWeather, this.PortalSettings, this.ModuleConfiguration); }