예제 #1
0
        public ActionResult GetRoadmap(int deviceID)
        {
            var user = (Users)Session["User"];

            if (user == null)
            {
                RedirectToAction("Login", "Home");
            }
            List <TrackData> data = TrackDataService.GetRoadmap(deviceID);

            return(Json(new { Result = data }, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public ActionResult GetRoadmap(int deviceID)
        {
            var data = TrackDataService.GetRoadmap(deviceID);

            return(Json(new { Result = data }, JsonRequestBehavior.AllowGet));
        }