public async Task <IActionResult> GetKeys(string clientId) { if (string.IsNullOrWhiteSpace(clientId)) { return(BadRequest()); } var keys = await _apiKeyService.GetApiKeysAsync(clientId, true); return(Ok(keys.Select(_mapper.Map <ApiKeyDto>))); }