コード例 #1
0
ファイル: ForumController.cs プロジェクト: nuslucas/RSN2013
 public ActionResult Create(Forum forum)
 {
     return View();
 }
コード例 #2
0
ファイル: ForumController.cs プロジェクト: nuslucas/RSN2013
 //
 // GET: /Forum/
 public ActionResult Index(string Category)
 {
     Forum toReturn = new Forum();
     if (Category == null || Category == "")
     {
         ViewBag.TopicCount = 0;
         toReturn = null;
     }
     else
     {
         toReturn = db.Forums.SingleOrDefault(f => f.Category == Category);
     }
     return View(toReturn);
 }