public IActionResult GetMatches(VocabWordList wordList) { var result = VocabMatch.GetMatchList(wordList); var model = new VocabTestViewModel { VocabWords = wordList, Synonyms = result }; return(View(model)); }
public ActionResult AddVocabTest(VocabWordList vocabWordList) { _db.VocabWordLists.Add(vocabWordList); _db.SaveChanges(); return(RedirectToAction("Index", "Vocab")); }