public ActionResult Create(string wordInput) { if (wordInput != null) { LeetSpeakTranslator newLeetSpeakTranslator = new LeetSpeakTranslator(wordInput); List <LeetSpeakTranslator> allLeetSpeakTranslators = LeetSpeakTranslator.GetAll(); return(View("Index", allLeetSpeakTranslators)); } else { return(View("New")); } }
public ActionResult Index() { List <LeetSpeakTranslator> allLeetSpeakTranslators = LeetSpeakTranslator.GetAll(); return(View(allLeetSpeakTranslators)); }