ContentService.GetVersions Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

GetVersions(Int32, Boolean) Gets the version history for a Content item. The first item in the list is the current version. The last item is the oldest version.
GetVersions(T, Boolean) Gets the version history for a Content item.

GetVersions(Int32, Boolean)

Gets the version history for a Content item. The first item in the list is the current version. The last item is the oldest version.

public static IEnumerable GetVersions(int id, bool filter = true)

Parameters

id
System.Int32
filter
System.Boolean

Returns

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

Returns a list of objects.

GetVersions(T, Boolean)

Gets the version history for a Content item.

public static IEnumerable GetVersions(T content, bool filter = true)
    where T : Content, IVersionable

Parameters

content
{T}
filter
System.Boolean

Returns

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

Returns a list of T objects.