Attempt to fix bug with deleting...

This commit is contained in:
Michael 2017-03-26 11:23:12 -04:00
parent d0317c159b
commit bcb75147a7

View file

@ -51,7 +51,7 @@ public void DeleteCategoryRecursive(ForumCategory start)
{
DeleteTopic(topic);
}
db.ForumCategories.Remove(db.ForumCategories.FirstOrDefault(x => x.Id == start.Id));
db.ForumCategories.Remove(start);
}