ContentRepo.GetAncestors Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

GetAncestors(int)

Get ancestors of the specified Content, starting with the closest parent and ending with the root item.

public static IEnumerable<Content> GetAncestors(int id)

Parameters

id
int

Id (unique identifier).

Returns

System.Collections.Generic.IEnumerable

Returns a list of Content objects.