CommentService.Delete Method

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

Delete(int, bool)

Permanently deletes a Comment object from the repository.

This will delete the object and can cause a cascading effect where multiple objects will be deleted.

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

Parameters

id
int

Comment id.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Comment

The deleted Comment.