summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-06 13:59:56 -0400
committerMichael <[email protected]>2017-04-06 13:59:56 -0400
commit384be8169b4fd443b130d5209fb0f90867e2bc6f (patch)
treecf29d2f322dbc6b972f2475e5b26d87c3c5b22b5
parent5981ea899e31fd9c592f7f7fbf75b7a08a8f192c (diff)
downloadproject-unite-384be8169b4fd443b130d5209fb0f90867e2bc6f.tar.gz
project-unite-384be8169b4fd443b130d5209fb0f90867e2bc6f.tar.bz2
project-unite-384be8169b4fd443b130d5209fb0f90867e2bc6f.zip
Fix wiki category prober
-rw-r--r--Project-Unite/Controllers/WikiControllerController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project-Unite/Controllers/WikiControllerController.cs b/Project-Unite/Controllers/WikiControllerController.cs
index 1840074..b49a39e 100644
--- a/Project-Unite/Controllers/WikiControllerController.cs
+++ b/Project-Unite/Controllers/WikiControllerController.cs
@@ -13,7 +13,7 @@ namespace Project_Unite.Controllers
{
var db = new ApplicationDbContext();
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.Page = db.WikiPages.FirstOrDefault(x => x.Id == id);
return View(model);