ContentService.GetDraft Method

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

Overloads

GetDraft(int, bool) Gets the current draft of the specified Content item.
GetDraft(int, bool) Gets the current draft of the specified Content item.

GetDraft(int, bool)

Gets the current draft of the specified Content item.

public static Content GetDraft(int id, bool filter = true)

Parameters

id
int

Id of the Content item for which to get draft.

filter
bool

Returns

GetDraft(int, bool)

Gets the current draft of the specified Content item.

public static T GetDraft<T>(int id, bool filter = true)

    where T : Content, IDraftable

Parameters

id
int

Id of the Content item for which to get draft.

filter
bool

Returns

Returns an instance of the Content class.