/* * 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); }
/* * 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; bool success = true; //switch audition id to duet partner's id for point entry temp = auditionId; auditionId = duetPartnerId; //enter points foreach (AuditionCompositions audComp in compositions) { success = success && DbInterfaceStudentAudition.UpdateAuditionCompositionPoints(this, audComp, "District"); } //change back to original id auditionId = temp; return(success); }