ContentService.Restore Method

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

Overloads

Restore(int, bool) Restores a trashed content item (and its descendants).
Restore(int, bool) Restores a trashed content item (and its descendants).

Restore(int, bool)

Restores a trashed content item (and its descendants).

public static Content Restore(int id, bool auth = true)

Parameters

id
int

Id of the content item to restore.

auth
bool

Returns

Content

The restored content item.

Restore(int, bool)

Restores a trashed content item (and its descendants).

public static T Restore<T>(int id, bool auth = true)

    where T : Content, ITrashable

Parameters

id
int

Id of the content item to restore.

auth
bool

Returns

The restored content item.