C# Class TeamBins.Services.CommentManager

Inheritance: ICommentManager
ファイルを表示 Open project: kshyju/ProjectPlanningTool

Public Methods

Method Description
CommentManager ( ICommentRepository commentRepository, IUserAuthHelper userSessionHelper, IIssueRepository issueRepository, IActivityRepository activityRepository, IEmailManager emailManager, ITeamRepository teamRepository, IEmailRepository emailRepository, IOptions settings ) : System
Delete ( int id ) : void
GetComment ( int id ) : TeamBins.Common.CommentVM
GetComments ( int issueId ) : IEnumerable
SaveActivity ( int commentId, int issueId ) : ActivityDto
SaveComment ( TeamBins.Common.CommentVM comment ) : int
SendEmailNotificaionForNewComment ( TeamBins.Common.CommentVM comment ) : System.Threading.Tasks.Task

Send email to subscribers of the team about the new comment

Method Details

CommentManager() public method

public CommentManager ( ICommentRepository commentRepository, IUserAuthHelper userSessionHelper, IIssueRepository issueRepository, IActivityRepository activityRepository, IEmailManager emailManager, ITeamRepository teamRepository, IEmailRepository emailRepository, IOptions settings ) : System
commentRepository ICommentRepository
userSessionHelper IUserAuthHelper
issueRepository IIssueRepository
activityRepository IActivityRepository
emailManager IEmailManager
teamRepository ITeamRepository
emailRepository IEmailRepository
settings IOptions
return System

Delete() public method

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

GetComment() public method

public GetComment ( int id ) : TeamBins.Common.CommentVM
id int
return TeamBins.Common.CommentVM

GetComments() public method

public GetComments ( int issueId ) : IEnumerable
issueId int
return IEnumerable

SaveActivity() public method

public SaveActivity ( int commentId, int issueId ) : ActivityDto
commentId int
issueId int
return TeamBins.Common.ViewModels.ActivityDto

SaveComment() public method

public SaveComment ( TeamBins.Common.CommentVM comment ) : int
comment TeamBins.Common.CommentVM
return int

SendEmailNotificaionForNewComment() public method

Send email to subscribers of the team about the new comment
public SendEmailNotificaionForNewComment ( TeamBins.Common.CommentVM comment ) : System.Threading.Tasks.Task
comment TeamBins.Common.CommentVM
return System.Threading.Tasks.Task