public ActionResult CallAjax() { DweetService.JsonDweet dweetObj = new DweetService.JsonDweet(); dweetObj = DweetService.checkDweetValue(); return(Json(dweetObj, JsonRequestBehavior.AllowGet)); }
// 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)); }