public async Task AddCommentAsync(ClaimsPrincipal user, CommentModel comment) { comment.Username = user.GetGitHubLogin(); comment.TimeStamp = DateTime.Now; await _commentsRepository.UpsertCommentAsync(comment); }
public async Task AddCommentAsync(ClaimsPrincipal user, CommentModel comment) { comment.Username = user.GetGitHubLogin(); comment.TimeStamp = DateTime.Now; await _commentsRepository.UpsertCommentAsync(comment); await _notificationManager.NotifySubscribersOnComment(user, comment); }