示例#1
0
 public ActionResult NewQuestion()
 {
     var q = new Question();
       q.Title = " ?";
       q.Guid = Guid.NewGuid().ToString("N");
       return View("EditQuestion", q);
 }
示例#2
0
 public ActionResult UpdateQuestion(Question q)
 {
     Questions.Save(q);
       return RedirectToAction("EditQuestion", new { guid = q.Guid });
 }