Beispiel #1
0
        public JsonResult Getweatcher(string city)
        {
            var data = WeatherHelper.GetWeatherBycityName(city);
            var json = Json(data);

            return(json);
        }
Beispiel #2
0
        public ActionResult Index()
        {
            var data = WeatherHelper.GetWeatherBycityName("柳州");

            return(View(data));
        }