C# Класс Blog.Logic.Core.CommentsLogic

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

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

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