CommentService.Trash Method

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

Trash(int, bool)

Sends a Comment to the trash.

public static Comment Trash(int id, bool sudo = false)

Parameters

id
int

Id of the Comment to trash.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Comment

The trashed Comment.