public void CreateCommentUser(string userId, int commentId) { var commentUser = new CommentUser { UserId = userId, CommentId = commentId }; commentUserRepository.Add(commentUser); SaveCommentUser(); }
public void CreateComment(Comment comment, string userId) { commentRepository.Add(comment); SaveComment(); var commentUser = new CommentUser { UserId = userId, CommentId = comment.CommentId }; commentUserRepository.Add(commentUser); SaveComment(); }