Need help with code Method done in c# and asp.net?

  • Thread starter Thread starter Sheena W
  • Start date Start date
S

Sheena W

Guest
I have a section in a project that allows user to refer friends, my problem now that I have to keep track of whom referred whom. Points flow:
User1 refers User2. User1 get 10 points for successful referral. User2 refers user3.User2 gets 10 points and User1 gets 5. user3 refers user4.user3 gets 10 points user2 gets 5 points user1 gets 3points. User4 refers user5.user4 get 10 points user3 gets 5 points user2 gets 3 user1 get 1 point. Once a user has reached the 1 point stage they will get 1 point for every successful referral. How would I be able to put this in code using c# and asp.net I can only seem to get the code to loop once to check for previous referral records.
 
Back
Top