public async Task <List <OrganizationDto> > BrowseAsync(BrowseOrganizations query) { var list = await _repository.BrowseAsync(); if (!string.IsNullOrWhiteSpace(query.Name)) { list = list.Where(x => x.Name.ToLower().Contains(query.Name.ToLower())); } if (query.Country != null) { list = list.Where(x => x.Country == query.Country); } return(_mapper.Map <List <OrganizationDto> >(list.ToList())); }