private function OnSuccess()
 {
     $member = $this->confirmer->GetMember();
     $member->SetConfirmed(Date::Now());
     if ($this->confirm->GetActivate()) {
         $member->SetActive(true);
     }
     $member->Save();
     $this->AddGroups($member);
     if ($this->confirm->GetSuccessUrl()) {
         Response::Redirect(FrontendRouter::Url($this->confirm->GetSuccessUrl()));
     }
 }
 private function ClearMembergroups(array $selectedIDs)
 {
     $sql = Access::SqlBuilder();
     $tblConfirmGroup = RegisterConfirmMembergroup::Schema()->Table();
     $where = $sql->Equals($tblConfirmGroup->Field('Confirm'), $sql->Value($this->confirm->GetID()));
     if (count($selectedIDs)) {
         $where = $where->And_($sql->NotIn($tblConfirmGroup->Field('MemberGroup'), $sql->InListFromValues($selectedIDs)));
     }
     RegisterConfirmMembergroup::Schema()->Delete($where);
 }