protected void btnConfirmComplete_Click(object sender, EventArgs e) { //confirm Complete startOver(); //Update vacancy status. Vacancy vacancy = new Vacancy(); vacancy.VacancyNo = vacancyNo; vacancy.PostedDate = VacancyDate; vacancy.Status = VacancyConstants.VACANCY_EVALUTION2_DONE; VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy); TransactionResponse response = manager.updateVacancyStatusforVacancyCompletion(); displayMessageToTheUser(response); if (response.isSuccessful()) { populateVacancy(); //delete notification for HR Officer 2nd phase rating. NotificationManager notificationManager = new NotificationManager(vacancy); TransactionResponse deleteResponse = notificationManager.deleteNotificationForAssignedVacancy(Membership.GetUser()); //display Message to the user only if there was an issue while removing notification. if (!deleteResponse.isSuccessful()) { displayMessageToTheUser(deleteResponse); } //Add notification for HR Manager, as Rating is done for 2nd phase TransactionResponse notificationResponse = notificationManager.addNotification(Membership.GetUser(), "8"); //display Message to the user only if there was an issue while add notification for rating done. if (!notificationResponse.isSuccessful()) { displayMessageToTheUser(notificationResponse); } } }