public JsonResult GetData(int pageNo, int pageSize, string whereQry, string OrgWhr, string SearchText, string WhrDueDate, string TransType, string FromDate, string ToDate) { Ctx ct = Session["ctx"] as Ctx; PaymentModel _payMdl = new PaymentModel(); LoadData _Paydata = _payMdl.GetloadData(pageNo, pageSize, ct, whereQry, OrgWhr, SearchText, WhrDueDate, TransType, FromDate, ToDate); return(Json(JsonConvert.SerializeObject(_Paydata), JsonRequestBehavior.AllowGet)); }