ContentService.Revert Method

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

Revert(int, long, bool)

Revert to a previous version of a Content item.

public static Content Revert(int id, long version, bool sudo = false)

Parameters

id
int

Id of the Content.

version
long

Timestamp of the version.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Content

The reverted version of the Content item.