コード例 #1
0
        public ActionResult Result(QuizResultViewmodel model, string nickname)
        {
            var highscore = new QuizHighscore() { CategoryId = model.CategoryId, DateTime = DateTime.Now, Name = nickname, Score = model.Score };
            rep.CreateHighscore(highscore);

            return RedirectToAction("Highscore", new { categoryId = model.CategoryId });
            //return View();
        }
コード例 #2
0
 public ActionResult Result(QuizResultViewmodel model)
 {
     return View(model);
 }