Method | Description | |
---|---|---|
Add ( |
||
CommentsLogic ( ICommentRepository commentRepository, IUserRepository userRepository ) : System | ||
Delete ( int commentId ) : bool | ||
Get ( int commentId ) : |
||
GetByPostId ( int postId ) : List |
||
GetByUser ( int userId ) : List |
||
GetReplies ( int commentId ) : List |
||
GetTopComments ( int postId, int commentsCount ) : List |
||
SearchComments ( string query, int threshold = 10, int skip = 10 ) : List |
public Add ( |
||
comment | ||
return |
public CommentsLogic ( ICommentRepository commentRepository, IUserRepository userRepository ) : System | ||
commentRepository | ICommentRepository | |
userRepository | IUserRepository | |
return | System |
public Get ( int commentId ) : |
||
commentId | int | |
return |
public GetTopComments ( int postId, int commentsCount ) : List |
||
postId | int | |
commentsCount | int | |
return | List |
public SearchComments ( string query, int threshold = 10, int skip = 10 ) : List |
||
query | string | |
threshold | int | |
skip | int | |
return | List |