public async Task <IActionResult> GenerateApiKeyAsync() { _logger.LogInformation("HttpPost GenerateApiKey started"); var key = await _service.RegenerateApiKey(); _logger.LogInformation("New ApiKey created"); return(Ok(key)); }