C# 클래스 Blog.Services.Implementation.CommentsService

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

공개 메소드들

메소드 설명
Add ( Comment comment ) : Comment
CommentsService ( ICommentsLogic commentsLogic, IRedisService redisService ) : System
Delete ( int id ) : bool
Get ( int commentId ) : Comment
GetByPostId ( int id ) : List
GetByUser ( int id ) : List
GetReplies ( int id ) : List
SearchComments ( string query, int threshold = 5, int skip = 10 ) : List

메소드 상세

Add() 공개 메소드

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

CommentsService() 공개 메소드

public CommentsService ( ICommentsLogic commentsLogic, IRedisService redisService ) : System
commentsLogic ICommentsLogic
redisService IRedisService
리턴 System

Delete() 공개 메소드

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

Get() 공개 메소드

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

GetByPostId() 공개 메소드

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

GetByUser() 공개 메소드

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

GetReplies() 공개 메소드

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

SearchComments() 공개 메소드

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