Exemple #1
0
 // To display candidate to Placement Consultant
 public List <ICandidateProfile> display_candidate_toPC()
 {
     try
     {
         ICandidateDB objCandidateDB = (ICandidateDB)CandidateDBFactory.Create_CandidateDB();
         return(objCandidateDB.getCandidates());
     }
     catch (Exception)
     {
         return(null);
     }
 }
Exemple #2
0
        // 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);
        }