示例#1
0
 public ActionResult Create(Forum forum)
 {
     return View();
 }
示例#2
0
 //
 // 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);
 }