public ActionResult QuizzSettings() { QuizzModeVM modeList = new QuizzModeVM(); modeList.Modes = new List <SelectListItem>() { new SelectListItem() { Text = "Yes or No", Value = "0" }, new SelectListItem() { Text = "3 Choices", Value = "1" }, }; return(View(modeList)); }
public ActionResult QuizzSettings(QuizzModeVM quizMode) { Session["SelectedMode"] = quizMode.Mode; return(RedirectToAction("QuizzView")); }