C# Class ReviewR.Web.Services.CommentService

Show file Open project: anurse/ReviewR Class Usage Examples

Public Methods

Method Description
CommentService ( IDataRepository data ) : System
CreateComment ( int changeId, int line, string body, int userId ) : Comment
DeleteComment ( int id, int userId ) : DatabaseActionOutcome

Protected Methods

Method Description
CommentService ( ) : System

Method Details

CommentService() protected method

protected CommentService ( ) : System
return System

CommentService() public method

public CommentService ( IDataRepository data ) : System
data IDataRepository
return System

CreateComment() public method

public CreateComment ( int changeId, int line, string body, int userId ) : Comment
changeId int
line int
body string
userId int
return ReviewR.Web.Models.Data.Comment

DeleteComment() public method

public DeleteComment ( int id, int userId ) : DatabaseActionOutcome
id int
userId int
return DatabaseActionOutcome