public JsonResult getWeather(string city) { var data = WeatherHelper.GetWeatherByName(city); var json = Json(data); return(json); }
public ActionResult Index() { var data = WeatherHelper.GetWeatherByName("河池"); return(View(data)); }