mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
Fix wiki category prober
This commit is contained in:
parent
5981ea899e
commit
384be8169b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue