コード例 #1
0
        public JsonResult select(string url)
        {
            JsonResult json = new JsonResult();

            json.Data = new { Data = WeatherDal.WeatherSelete(url) };
            //反序列化
            //Dictionary<string, string> jsonDict = JsonConvert.DeserializeObject<Dictionary<string, string>>(HTTPService.Get(url));
            json.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
            return(json);
        }
コード例 #2
0
 public void TestMethod1()
 {
     var json =  WeatherDal.WeatherSelete("101220101") ;
 }