public async Task <ActionResult <string> > GetPermutationsAsync([FromQuery] string w) { if (w is null) { return(BadRequest()); } AnagramChecker anagramChecker = new AnagramChecker(); IEnumerable <string> anagrams = await anagramChecker.GetPermutationsAsync(w); if (anagrams.Count() == 0) { return(NotFound()); } else { return(Ok(anagrams)); } }