public Weather getInfo(String location) { weather = new Weather(); GoogleMap marker = getGeoCode(location); weather.jScript=getJScript(marker); weather.location = location; return weather; }
public ActionResult Weather(String name) { Weather weather=new Weather(); weather.location=Request["Location"].ToString(); WeatherProcessor weatherProcessor = new WeatherProcessor(); weather=weatherProcessor.getInfo(weather.location); return View("Weather", weather); }