ContentService.Discard Method

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

Discard(int, bool)

Discard pending changes, i.e. the current draft of the content item with the specified id.

public static Content Discard(int id, bool sudo = false)

Parameters

id
int

Id of the Content that should have its draft discarded.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Content

The discarded draft.