C# Class Blog.Services.Helpers.Rest.CommentsRestResource

Inheritance: ICommentsRestResource
Show file Open project: jsnmgpnty/Blogness2.0

Public Methods

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

Method Details

Add() public method

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

Delete() public method

public Delete ( int commentId, string authenticationToken ) : bool
commentId int
authenticationToken string
return bool

Get() public method

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

GetByPostId() public method

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

GetByUser() public method

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

GetReplies() public method

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