public JsonResult GetLedgerVoucherList(TransactionListRequestModel requestModel) { requestModel.ToInstituteId = user.InstituteId != 300010 ? user.InstituteId : requestModel.ForInstituteId; var tupleList = transactionsManager.CreateLedgerVoucherList(user.DepartmentID, requestModel); var response = new SearchTransactionViewModel() { transactionSearchLedgers = tupleList.transactionLedger, transactionAmount = tupleList.totalTransactionAmount }; var jsonResult = Json(response, JsonRequestBehavior.AllowGet); jsonResult.MaxJsonLength = int.MaxValue; return(jsonResult); }