ContentService.Trash Method

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

Overloads

Trash(int, bool) Sends a content item (and it's descendants) to the trash.
Trash(int) Sends a content item (and it's descendants) to the trash.

Trash(int, bool)

Sends a content item (and it's descendants) to the trash.

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

Parameters

id
int

Id of the content item to trash.

auth
bool

Returns

Content

The trashed content item.

Trash(int)

Sends a content item (and it's descendants) to the trash.

public static T Trash<T>(int id)

    where T : Content, ITrashable

Parameters

id
int

Id of the content item to trash.

Returns

The trashed content item.