public JsonResult GetPlatiFromLog(DateTime?ImportDate) { string conStr = Session["conStr"].ToString(); //ConfigurationManager.ConnectionStrings["MySQLConnectionString"].ConnectionString; PlatiRepository pr = new PlatiRepository(Convert.ToInt32(Session["CURENT_USER_ID"]), conStr); response r = pr.GetPlatiFromLog(ImportDate); JsonResult result = Json(r, JsonRequestBehavior.AllowGet); result.MaxJsonLength = Int32.MaxValue; return(result); }