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)); }
public ActionResult GetRoadmap(int deviceID) { var data = TrackDataService.GetRoadmap(deviceID); return(Json(new { Result = data }, JsonRequestBehavior.AllowGet)); }