// To update Medical Status public int med_update(int cand_ID, int Test_status, int Med_status) { ICandidateDB objCandidateDB = CandidateDBFactory.Create_CandidateDB(); List <ICandidateProfile> lstCandidateProfile = objCandidateDB.getCandidates(); foreach (ICandidateProfile objCandidateProfile in lstCandidateProfile) { if (objCandidateProfile.get_CandidateProfileID == cand_ID) { if (objCandidateProfile.get_TestStatus == 4) { objCandidateProfile.get_MedicalTestStatus = Med_status; objCandidateProfile.get_TestStatus = Test_status; return(objCandidateDB.updateCandidates(objCandidateProfile)); } } } return(0); }
// To update candidates public int candidate_update(ICandidateProfile objCandidateProfile) { ICandidateDB objCandidateDB = CandidateDBFactory.Create_CandidateDB(); return(objCandidateDB.updateCandidates(objCandidateProfile)); }