C# 클래스 Blog.Logic.Core.CommentsLogic

상속: ICommentsLogic
파일 보기 프로젝트 열기: jsnmgpnty/Blogness2.0

공개 메소드들

메소드 설명
Add ( Comment comment ) : Comment
CommentsLogic ( ICommentRepository commentRepository, IUserRepository userRepository ) : System
Delete ( int commentId ) : bool
Get ( int commentId ) : Comment
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

메소드 상세

Add() 공개 메소드

public Add ( Comment comment ) : Comment
comment Blog.Common.Contracts.Comment
리턴 Blog.Common.Contracts.Comment

CommentsLogic() 공개 메소드

public CommentsLogic ( ICommentRepository commentRepository, IUserRepository userRepository ) : System
commentRepository ICommentRepository
userRepository IUserRepository
리턴 System

Delete() 공개 메소드

public Delete ( int commentId ) : bool
commentId int
리턴 bool

Get() 공개 메소드

public Get ( int commentId ) : Comment
commentId int
리턴 Blog.Common.Contracts.Comment

GetByPostId() 공개 메소드

public GetByPostId ( int postId ) : List
postId int
리턴 List

GetByUser() 공개 메소드

public GetByUser ( int userId ) : List
userId int
리턴 List

GetReplies() 공개 메소드

public GetReplies ( int commentId ) : List
commentId int
리턴 List

GetTopComments() 공개 메소드

public GetTopComments ( int postId, int commentsCount ) : List
postId int
commentsCount int
리턴 List

SearchComments() 공개 메소드

public SearchComments ( string query, int threshold = 10, int skip = 10 ) : List
query string
threshold int
skip int
리턴 List