private static IEnumerable <DashboardControllerAttribute> GetChildrenControllerAttributes( IEnumerable <DashboardControllerAttribute> dashboardControllerAttributes , DashboardControllerType parentControllerType) { var childControllerAttributes = dashboardControllerAttributes .Where(x => x.ParentControllerType == parentControllerType); return(childControllerAttributes); }
public DashboardControllerAttribute( DashboardControllerType name , DashboardControllerType parentControllerType = DashboardControllerType.Independent , int sortOrder = 1 , string iconClassName = "-") { Name = name; SortOrder = sortOrder; ParentControllerType = parentControllerType; IconClassName = iconClassName; }