C# Class Blog.Services.Helpers.Wcf.CommentsResource

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

Public Methods

Method Description
Add ( Comment comment ) : Comment
Delete ( int id ) : bool
Get ( int commentId ) : Comment
GetByPostId ( int id ) : List
GetByUser ( int id ) : List
GetHeartBeat ( ) : bool
GetReplies ( int id ) : List
SearchComments ( string query, int threshold = 5, int skip = 10 ) : List

Method Details

Add() public method

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

Delete() public method

public Delete ( int id ) : bool
id int
return bool

Get() public method

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

GetByPostId() public method

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

GetByUser() public method

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

GetHeartBeat() public method

public GetHeartBeat ( ) : bool
return bool

GetReplies() public method

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

SearchComments() public method

public SearchComments ( string query, int threshold = 5, int skip = 10 ) : List
query string
threshold int
skip int
return List