Created
April 17, 2013 20:11
-
-
Save thePunderWoman/5407358 to your computer and use it in GitHub Desktop.
Parent_cats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the parent categories | |
List<APICategory> parent_cats = CURTAPI.GetParentCategories(); | |
foreach (APICategory parent in parent_cats) { | |
List<APICategory> subs = CURTAPI.GetSubCategories(parent.catID); | |
parent.sub_categories = subs; | |
} | |
ViewBag.parent_cats = parent_cats; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment