public ActionResult GetPaymentScheduleBatch(string FileName, int RecordID) { Ctx ct = Session["ctx"] as Ctx; PaymentModel _obj = new PaymentModel(); List <PayBatchDetails> res = _obj.GetPayScheduleBatch(ct); var jRes = Json(JsonConvert.SerializeObject(new { result = res, error = "" }), JsonRequestBehavior.AllowGet); jRes.MaxJsonLength = int.MaxValue; return(jRes); }