public JsonResult FullRequestList(SpecRequestTableParams paramDetails) { int totalCount = 0, filteredCount = 0; using (var sRepository = new SpecRequestRepository()) { var results = sRepository.GetFullRequestList( paramDetails, out totalCount, out filteredCount); return(Json(new { sEcho = paramDetails.sEcho, iTotalRecords = totalCount, iTotalDisplayRecords = filteredCount, aaData = results }, JsonRequestBehavior.AllowGet)); } }