C# Класс Blog.Services.Helpers.Rest.CommentsRestResource

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

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

Метод Описание
Add ( Comment comment, string authenticationToken ) : Comment
Delete ( int commentId, string authenticationToken ) : bool
Get ( int commentId ) : Comment
GetByPostId ( int postId ) : List
GetByUser ( int userId ) : List
GetReplies ( int commentId ) : List

Описание методов

Add() публичный метод

public Add ( Comment comment, string authenticationToken ) : Comment
comment Blog.Common.Contracts.Comment
authenticationToken string
Результат Blog.Common.Contracts.Comment

Delete() публичный метод

public Delete ( int commentId, string authenticationToken ) : bool
commentId int
authenticationToken string
Результат 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