public void RegisterContestant(Contestant contestant) { keyId++; contestant.RegistrationNum = keyId; UI.GetUserInfo(contestant.FirstName); UI.GetUserInfo(contestant.LastName); UI.GetUserInfo(contestant.EmailAddress); UI.GiveUserKeyID(keyId); contestants.Add(keyId, contestant); RandomPrize(); }
public Contestant() { this.FirstName = UI.GetUserInfo("Please enter your first name"); this.LastName = UI.GetUserInfo("Please enter your Last name"); this.EmailAddress = UI.GetUserInfo("Please enter your e-mail address"); }
public void CreateSweepstakes() { Sweepstakes sweepstakes = new Sweepstakes(UI.GetUserInfo("Enter sweepstakes name")); sweepstakesManager.InsertSweepstakes(sweepstakes); }