public async Task <QueryResult <UserProfileModel> > FindListUsers(BlockCommitteeSearchCriteria criteria) { var searchCriteria = new UsersSearchCriteriaModel(); searchCriteria.Email = criteria.Email; searchCriteria.Name = criteria.EmployeeName; searchCriteria.MobileNumber = criteria.PhoneNumber; searchCriteria.PageNumber = criteria.PageNumber; searchCriteria.PageSize = criteria.PageSize; searchCriteria.AgencyId = criteria.AgencyId; searchCriteria.isGovVendor = criteria.isGovVendor; searchCriteria.isSemiGovAgency = criteria.isSemiGovAgency; searchCriteria.AgencyType = (int)criteria.AgencyType; searchCriteria.NationalId = criteria.CommercialRegistrationNo; if (!string.IsNullOrEmpty(searchCriteria.NationalId)) { searchCriteria.NationalIds.Add(searchCriteria.NationalId); } searchCriteria.RoleNames = new List <string> { RoleNames.MonafasatBlockListSecritary, RoleNames.MonafasatBlackListCommittee }; var idmUsers = await _iDMAppService.GetMonafasatUsersForBlockUserList(searchCriteria); var Users = _mapper.Map <QueryResult <UserProfileModel> >(idmUsers); return(Users); }