Class NavigationMenuItemExtensions
- Namespace
- Raytha.Application.Common.Utils
- Assembly
- Raytha.Application.dll
public static class NavigationMenuItemExtensions
- Inheritance
-
NavigationMenuItemExtensions
- Inherited Members
Methods
BuildTree<TModel>(IReadOnlyCollection<NavigationMenuItemDto>, Func<NavigationMenuItemDto, IReadOnlyCollection<TModel>, int, TModel>, ShortGuid?)
public static IReadOnlyCollection<TModel> BuildTree<TModel>(this IReadOnlyCollection<NavigationMenuItemDto> navigationMenuItems, Func<NavigationMenuItemDto, IReadOnlyCollection<TModel>, int, TModel> createModel, ShortGuid? parentNavigationMenuItemId = null)
Parameters
navigationMenuItems
IReadOnlyCollection<NavigationMenuItemDto>createModel
Func<NavigationMenuItemDto, IReadOnlyCollection<TModel>, int, TModel>parentNavigationMenuItemId
ShortGuid?
Returns
- IReadOnlyCollection<TModel>
Type Parameters
TModel
ExcludeNestedNavigationMenuItems(IReadOnlyCollection<NavigationMenuItemDto>, ShortGuid)
public static IReadOnlyCollection<NavigationMenuItemDto> ExcludeNestedNavigationMenuItems(this IReadOnlyCollection<NavigationMenuItemDto> navigationMenuItems, ShortGuid id)
Parameters
navigationMenuItems
IReadOnlyCollection<NavigationMenuItemDto>id
ShortGuid
Returns
GetNestedNavigationMenuItemIds(IReadOnlyCollection<NavigationMenuItemDto>, ShortGuid)
public static IReadOnlyCollection<ShortGuid> GetNestedNavigationMenuItemIds(this IReadOnlyCollection<NavigationMenuItemDto> navigationMenuItems, ShortGuid id)
Parameters
navigationMenuItems
IReadOnlyCollection<NavigationMenuItemDto>id
ShortGuid
Returns
- IReadOnlyCollection<ShortGuid>