コード例 #1
0
ファイル: HomeController.cs プロジェクト: 15707786653/MyVisS
        public JsonResult getWeather(string city)
        {
            var data = WeatherHelper.GetWeatherByName(city);
            var json = Json(data);

            return(json);
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: 15707786653/MyVisS
        public ActionResult Index()
        {
            var data = WeatherHelper.GetWeatherByName("河池");

            return(View(data));
        }