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

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

            return(View(data));
        }