protected void btnCheckAuth_Click(object sender, EventArgs e) { ParticipantEnroller enroller = new ParticipantEnroller(); enroller.UpdateAuthorizedParticipants(); //if (included == "AllAuthorized") Success.Text = "All Patients Included"; //else Success.Text = "Patients not Satisfying Criteria: "+included; setLastAuthUpdate(DateTime.Now); bindLstAuthorizedParticipants(); lblLastUpdateDate.Text = getLastAuthUpdate().ToShortDateString(); }
protected void btnCheckEligibility_Click(object sender, EventArgs e) { ParticipantEnroller enroller = new ParticipantEnroller(); enroller.UpdateEligbleParticipants(); bindLstEligibleParticipants(); }
private void enrollNewParticipant(string firstName, string lastName, string email, string securityQuestion, string securityAnswer, string pcpUsername) { Participant participant = new Participant(); participant.FirstName = firstName; participant.LastName = lastName; participant.Email = email; participant.SecurityQuestion = securityQuestion; participant.SecurityAnswer = securityAnswer; participant.PcpUsername = pcpUsername; ParticipantEnroller enroller = new ParticipantEnroller(); enroller.EnrollNewParticipant(participant); }