ContentRepo.GetAncestors Method

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

GetAncestors(Int32)

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

public static IEnumerable GetAncestors(int id)

Parameters

id
System.Int32

Returns

System.Collections.Generic.IEnumerable{Weavy.Core.Models.Content}

Returns a list of objects.