// GET: MostCommonWords public ActionResult Index() { var mostCommonWords = GetMostCommonWords(); var model = new MostCommonWordsModelView(); model.MostCommonWords = mostCommonWords; return(View(model)); }
public ActionResult Search(string Comment) { var model = new MostCommonWordsModelView(); var mostCommonWordsDB = GetMostCommonWords(Comment); if (mostCommonWordsDB != null) { model.Comment = Comment; model.MostCommonWords = mostCommonWordsDB; } return(View("Index", model)); }