CustomPageExtensionsSearchCategoryParentById Method

Loop through the help contents and its children, and return the top parent (category) item

Definition

Namespace: MobileTrack.Common.Models.CustomPageEditor
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static CustomPageDto? SearchCategoryParentById(
	this List<CustomPageDto> customPages,
	Guid searchId
)

Parameters

customPages  ListCustomPageDto
The List of CustomPageDto
searchId  Guid
ID to search

Return Value

CustomPageDto
Found parent CustomPageDto string

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListCustomPageDto. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also