Example #1
0
 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"));
     }
 }
Example #2
0
        public ActionResult Index()
        {
            List <CheckScore> allCheckScores = CheckScore.GetAll();

            return(View(allCheckScores));
        }