public ActionResult AuditUserGrid(GridParams gridParams, int loginId) { var audit = _auditService.GetAuditUsers(new GetAuditUsersRequest { Skip = gridParams.DisplayStart, Take = gridParams.DisplayLength, Search = gridParams.Search, SortingDictionary = gridParams.SortingDictionary, LoginId = loginId }); IList <AuditUsersResponse.AuditUser> datas = audit.AuditUsers.ToList(); var data = new { sEcho = gridParams.Echo + 1, iTotalDisplayRecords = audit.TotalRecords, iTotalRecords = audit.AuditUsers.Count, aaData = datas }; return(Json(data, JsonRequestBehavior.AllowGet)); }