Пример #1
0
 public ActionResult NewMultipleChoiceQuestion()
 {
     var q = new MultipleChoiceQuestion();
       q.Title = " ?";
       q.Guid = Guid.NewGuid().ToString("N");
       return View("EditQuestion", q);
 }
Пример #2
0
 public ActionResult UpdateMultipleChoiceQuestion(MultipleChoiceQuestion q)
 {
     Questions.Save(q);
       return RedirectToAction("EditMultipleChoiceQuestion", new { guid = q.Guid });
 }