Example #1
0
        public JsonResult GetWeather(string city)
        {
            var data = WeatherHelper.GetWeatByCityName(city);
            var json = Json(data);

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

            return(View(data));
        }