public JsonResult GetWeather(string city) { var data = WeatherHelper.GetWeatByCityName(city); var json = Json(data); return(json); }
public ActionResult Index() { var data = WeatherHelper.GetWeatByCityName("柳州"); return(View(data)); }