CommentService.Get Method

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

Get(int, bool, bool)

Gets a Comment object from the repository.

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

Parameters

id
int

Comment ID (unique identifier).

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return comment even if trashed, otherwise false.

Returns

Comment

Returns an instance of the Comment class.