C# Class Blog.Services.Implementation.CommentsService

Inheritance: BaseService, ICommentsService
Afficher le fichier Open project: jsnmgpnty/Blogness2.0

Méthodes publiques

Méthode 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 méthode

public Add ( Comment comment ) : Comment
comment Blog.Common.Contracts.Comment
Résultat Blog.Common.Contracts.Comment

CommentsService() public méthode

public CommentsService ( ICommentsLogic commentsLogic, IRedisService redisService ) : System
commentsLogic ICommentsLogic
redisService IRedisService
Résultat System

Delete() public méthode

public Delete ( int id ) : bool
id int
Résultat bool

Get() public méthode

public Get ( int commentId ) : Comment
commentId int
Résultat Blog.Common.Contracts.Comment

GetByPostId() public méthode

public GetByPostId ( int id ) : List
id int
Résultat List

GetByUser() public méthode

public GetByUser ( int id ) : List
id int
Résultat List

GetReplies() public méthode

public GetReplies ( int id ) : List
id int
Résultat List

SearchComments() public méthode

public SearchComments ( string query, int threshold = 5, int skip = 10 ) : List
query string
threshold int
skip int
Résultat List