public void CreateGroupCommentUser(string userId, int groupCommentId) { var groupCommentUser = new GroupCommentUser { UserId = userId, GroupCommentId = groupCommentId }; groupCommentUserRepository.Add(groupCommentUser); SaveGroupCommentUser(); }
public void CreateComment(GroupComment comment, string userId) { groupCommentRepository.Add(comment); SaveComment(); var groupCommentUser = new GroupCommentUser { UserId = userId, GroupCommentId = comment.GroupCommentId }; groupCommentUserRepository.Add(groupCommentUser); SaveComment(); }