C# Класс Blog.Services.Implementation.CommentsService

Наследование: BaseService, ICommentsService
Показать файл Открыть проект

Открытые методы

Метод Описание
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