public ActionResult Get(uint id) { if (!Authentication.IsValid()) { return(Json(new { Error = "Not Authenticated" })); } JsonResult json = Json(new { Object = ScheduleDAO.GetById(id) }); json.MaxJsonLength = int.MaxValue; return(json); }