Example #1
0
 public ActionResult ReOrderQuestionList(QuestionListViewModel list)
 {
     // only the guids and the numbers are submitted
       Questions.ReNumber(Questions.GetNumbering(list.Questions));
       return RedirectToAction("QuestionList");
 }
Example #2
0
 public ActionResult QuestionList()
 {
     QuestionListViewModel vm = new QuestionListViewModel();
       vm.Questions = Questions.All.Values.OrderBy(q => q.Number).ToList();
       return View(vm);
 }