Exemplo n.º 1
0
        public ActionResult CallAjax()

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

            return(Json(dweetObj, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 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));
        }