public ActionResult Create(string wordInput) { if (wordInput != null) { CheckScore newScore = new CheckScore(wordInput); newScore.CalculateScore(); List <CheckScore> allCheckScores = CheckScore.GetAll(); return(View("Index", allCheckScores)); } else { return(View("New")); } }
public ActionResult Index() { List <CheckScore> allCheckScores = CheckScore.GetAll(); return(View(allCheckScores)); }