Ejemplo n.º 1
0
        public ActionResult Get([FromQuery(Name = "from")] string letterSet)
        {
            if (string.IsNullOrWhiteSpace(letterSet))
            {
                return(this.BadRequest("you must provide a set of letters to search with the 'from' query parameter"));
            }

            return(this.Ok(_wordFinder.FindAllWords(letterSet)));
        }