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