public object GetAuthorityList(string textSearch, int currPage, int recordperpage) { // GetOrg string orgCode = User.Claims.Where(u => u.Type == AuthorityConstant.orgCode).FirstOrDefault().Value; TblOrganization org = new TblOrganization(); if (!string.IsNullOrEmpty(orgCode)) { org = _authorityRepository.GetOrganization(orgCode); } // GetUserId int userId = Int32.Parse(User.Claims.Where(u => u.Type == AccountConstant.userId).FirstOrDefault().Value); if (!string.IsNullOrEmpty(textSearch)) { textSearch = textSearch.TrimEnd().TrimStart(); } string arr = textSearch + AccountConstant.StringSlipSearch + currPage + AccountConstant.StringSlipSearch + recordperpage + AccountConstant.StringSlipSearch + userId + AccountConstant.StringSlipSearch + org.OrganizationId ; return(Json(_authorityRepository.GetAuthorityList(arr))); }