Fix wiki category prober

This commit is contained in:
Michael 2017-04-06 13:59:56 -04:00
parent 5981ea899e
commit 384be8169b

View file

@ -13,7 +13,7 @@ namespace Project_Unite.Controllers
{ {
var db = new ApplicationDbContext(); var db = new ApplicationDbContext();
var model = new WikiViewModel(); var model = new WikiViewModel();
var wikicategories = db.WikiCategories.Where(x => x.Parent == null); var wikicategories = db.WikiCategories.Where(x => x.Parent == "none");
model.Categories = wikicategories; model.Categories = wikicategories;
model.Page = db.WikiPages.FirstOrDefault(x => x.Id == id); model.Page = db.WikiPages.FirstOrDefault(x => x.Id == id);
return View(model); return View(model);