public ActionResult GeneratePaymentsBatch(string PaymentData) { GeneratePaymt[] arr = JsonConvert.DeserializeObject <GeneratePaymt[]>(PaymentData); Ctx ct = Session["ctx"] as Ctx; PaymentModel _payMdl = new PaymentModel(); string _Paydata = _payMdl.CrateBatchPayment(ct, arr); return(Json(JsonConvert.SerializeObject(_Paydata), JsonRequestBehavior.AllowGet)); }