Exemplo n.º 1
0
        public PartialViewResult GetWords( string letters )
        {
            if( letters == null ) return PartialView( new List<Word>() );

              var engine = new Engine();
              var words = engine.FindWords( new List<char> ( letters ) );
              words.Sort( new Word.ScoreComparer() );
              words.Reverse();
              return PartialView( words );
        }