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