CommentService Class

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

Service layer for Comment objects.

public static class CommentService
Inheritance:
System.Object → CommentService

Methods

Delete(int, bool) Permanently deletes a Comment object from the repository.
Follow(int, int?) Mark a Comment as followed by the specified user.
Get(int, bool) Gets a Comment object from the repository.
GetCount() Gets the total number of Comment items in the system.
Insert(Comment, ICommentable, IEnumerable, IEnumerable, bool) Inserts a Comment object into the repository.
Restore(int) Restores a trashed Comment, i.e. clears the IsTrashed flag.
Search(CommentQuery) Performs a search according to the specified CommentQuery object.
Trash(int) Sends a Comment to the trash, i.e. sets the IsTrashed flag.
Update(Comment, IEnumerable, bool) Updates a Comment object.