/* * Pre: The audition must have been previously added to the database * Post: The audition points are added to the database */ public bool submitPoints() { //enter points bool success = DbInterfaceStudentAudition.EnterStateAuditionPoints(this); //add partner points if audition is a duet if (auditionType.ToUpper().Equals("DUET")) { submitDuetPartnerPoints(); } return(success); }
/* * Pre: The audition must have been previously added to the database * Post: The audition points for the duet partner associated with the current audition are updated */ private bool submitDuetPartnerPoints() { //get partner id int duetPartnerId = DbInterfaceStudentAudition.GetAuditionDuetPartnerAuditionId(auditionId); int temp; //switch audition id to duet partner's id for point entry temp = auditionId; auditionId = duetPartnerId; //enter points bool success = DbInterfaceStudentAudition.EnterStateAuditionPoints(this); //change back to original id auditionId = temp; return(success); }