public async Task <List <ApiKeyRow> > FindAllAsync(ApiKeyCriteria apiKeyCriteria) { var repository = await GetRepositoryAsync(); var query = repository.AsQueryable(); return(query.ToList()); }
public async Task <ActionResult <IEnumerable <ApiKey> > > FindAll([FromQuery] ApiKeyCriteria apiKeyCriteria) { var apiKeyList = await _apiKeyService.FindAllAsync(apiKeyCriteria); return(Ok(apiKeyList)); }
public async Task <List <ApiKey> > FindAllAsync(ApiKeyCriteria apiKeyCriteria) { var apiKeyRows = await _apiKeyRepository.FindAllAsync(apiKeyCriteria); return(apiKeyRows.Select(it => _mapper.Map <ApiKey>(it)).ToList()); }