C# Class Blog.Services.Implementation.CommentsService

Inheritance: BaseService, ICommentsService
Show file Open project: jsnmgpnty/Blogness2.0

Public Methods

Method Description
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

Method Details

Add() public method

public Add ( Comment comment ) : Comment
comment Blog.Common.Contracts.Comment
return Blog.Common.Contracts.Comment

CommentsService() public method

public CommentsService ( ICommentsLogic commentsLogic, IRedisService redisService ) : System
commentsLogic ICommentsLogic
redisService IRedisService
return System

Delete() public method

public Delete ( int id ) : bool
id int
return bool

Get() public method

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

GetByPostId() public method

public GetByPostId ( int id ) : List
id int
return List

GetByUser() public method

public GetByUser ( int id ) : List
id int
return List

GetReplies() public method

public GetReplies ( int id ) : List
id int
return List

SearchComments() public method

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