public ActionResult Result(string word, string sentence) { RepeatCounter myRepeatCounter = new RepeatCounter(); myRepeatCounter.SetWordAndSentence(word, sentence); myRepeatCounter.AllSymbolRemover(); myRepeatCounter.FindMatch(); return(View(myRepeatCounter)); }