public virtual void Delete(int userId, int followerId) { Follower follower = _dbContext.Followers.SingleOrDefault(x => x.UserId == userId && x.FolloweeId == followerId); _dbContext.Followers.Remove(follower); }
public virtual void Create(Follower follower) { _dbContext.Followers.Add(follower); }