示例#1
0
        public ActionResult CallAjax()

        {
            DweetService.JsonDweet dweetObj = new DweetService.JsonDweet();
            dweetObj = DweetService.checkDweetValue();

            return(Json(dweetObj, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        // GET: Home
        public ActionResult Index()
        {
            if (!String.IsNullOrEmpty(Request.QueryString["station"]))
            {
                Session["station"] = Request.QueryString["station"];
            }
            else
            {
                if (Session["station"] == null)
                {
                    Session["station"] = "THDust_001";
                }
            }

            DweetService.JsonDweet dweetObj = new DweetService.JsonDweet();
            dweetObj = DweetService.checkDweetValue();


            return(View(dweetObj.with == null ? new DweetService.JsonDweet() : dweetObj));
        }