public async Task <ApiKey> CreateAsync(ApiKey apiKey)
        {
            if (string.IsNullOrWhiteSpace(apiKey.Id))
            {
                apiKey = apiKey with
                {
                    Id = StringUtils.RandomString(50)
                };
            }

            var apiKeyRow = await _apiKeyRepository.InsertAsync(_mapper.Map <ApiKeyRow>(apiKey));

            return(_mapper.Map <ApiKey>(apiKeyRow));
        }