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 auth = true)

Parameters

id
int

Id of the Content that should have its draft discarded.

auth
bool

Returns

Content

The discarded draft.