public async Task <IActionResult> Get(string pokemonName) { try { logger.LogInformation("string input" + pokemonName); var translated = await translator.TranslateTextAsync(pokemonName); logger.LogInformation("result" + translated); return(Ok(new { name = pokemonName, description = translated })); } catch (Exception e) { return(BadRequest(e.Message)); } }