Beispiel #1
0
        public ActionResult Show(int id, string phraseToSearch)
        {
            WordToSearch             phrase   = WordToSearch.Find(id);
            int                      theCount = phrase.CountTheNumberOfTimesTermAppears();
            Dictionary <int, string> model    = new Dictionary <int, string>();

            model.Add(theCount, phrase.PhraseToSearch);
            // model.Add("Phrase", phrase.PhraseToSearch);
            return(View(model));
        }
        public ActionResult Show(int wordToSearchId, int countDisplayId)
        {
            CountDisplay countDisplay         = CountDisplay.Find(countDisplayId);
            Dictionary <string, object> model = new Dictionary <string, object>();
            WordToSearch wordToSearch         = WordToSearch.Find(wordToSearchId);

            model.Add("countDisplay", countDisplay);
            model.Add("wordToSearch", wordToSearch);
            return(View(model));
        }
        public ActionResult New(int wordCounterId)
        {
            WordToSearch phrase = WordToSearch.Find(wordCounterId);

            return(View(phrase));
        }