Need small snippet of code to add a referral code check to existing ASP.NET account sign up form.
If referral code is correct then the site will create account in our system (code already exists)
If referral code is incorrect then the site creates a record in our marketing system (code already exists)
All that needs to be coded is a check of a referral code from an array that follows this workflow.