public async Task <IActionResult> GetAsync([FromQuery] string secretName) { if (string.IsNullOrEmpty(secretName)) { return(BadRequest()); } string secretValue = await _secretManager.GetSecretAsync(secretName); if (!string.IsNullOrEmpty(secretValue)) { return(Ok(secretValue)); } else { return(Ok("There is no secret stored in the Key Vault")); } }