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(); }
public ActionResult Result(QuizResultViewmodel model) { return View(model); }