Example #1
0
        public GroupUser LeaveGroup(GroupUser groupUser)
        {
            _context.Remove(groupUser);
            _context.SaveChanges();

            return(groupUser);
        }
Example #2
0
        public Group DeleteGroup(Group group)
        {
            _context.Remove(group);
            _context.SaveChanges();

            return(group);
        }
Example #3
0
        public Post DeletePost(Post post)
        {
            _context.Remove(post);
            _context.SaveChanges();

            return(post);
        }
Example #4
0
        public Comment DeleteComment(Comment comment)
        {
            _context.Remove(comment);
            _context.SaveChanges();

            return(comment);
        }
Example #5
0
 public void RemoveCommentReaction(CommentReaction commentReaction)
 {
     _context.Remove(commentReaction);
     _context.SaveChanges();
 }