Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p class="lead">Kategorie</p>
- <div class="list-group">
- @helper showTree(Shop.Models.Category category)
- {
- @Html.ActionLink((string)category.Name, "Category", new { id = (int)category.CategoryID }, new { @class = "list-group-item" })
- foreach (var cat in category.ChildrenCategories)
- {
- @showTree(cat);
- }
- }
- @foreach (var cat in Model.Categories)
- {
- if (cat.BaseCategoryID == null)
- {
- @showTree(cat);
- }
- }
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement