public async Task <ActionResult <string> > GetLanguage([FromBody] Input input) { if (input.Text == null) { return(BadRequest()); } TranslationManager.OriginalText = input.Text; var result = await TranslationManager.GetDetectedLanguage(); return(Ok(result)); }