Esempio n. 1
0
 public void Update_Job_Template(JobTemplates jobTemp)
 {
     using (db)
     {
         JobApplication ja = (from j in db.JobApplications where j.Id == jobTemp.Job_ID select j).FirstOrDefault();
         ja.Qualifications = jobTemp.Job_Qualifications;
         ja.Description    = jobTemp.Job_Description;
         ja.Title          = jobTemp.Job_Title;
         db.SaveChanges();
     }
 }
Esempio n. 2
0
        private JobTemplates Translate_JobEntity_to_Job(JobApplication jobentity)
        {
            JobTemplates job = new JobTemplates();

            job.Job_ID             = jobentity.Id;
            job.Job_Title          = jobentity.Title;
            job.Job_Description    = jobentity.Description;
            job.Job_Qualifications = jobentity.Qualifications;
            job.Job_Questions      = getQuestionsByJobID(jobentity.Id);
            return(job);
        }
Esempio n. 3
0
        public void Create_Job_Template(JobTemplates newJob)
        {
            using (db)
            {
                JobApplication job = new JobApplication
                {
                    Title          = newJob.Job_Title,
                    Description    = newJob.Job_Description,
                    Qualifications = newJob.Job_Qualifications,
                    IsActive       = TRUE
                };

                db.JobApplications.Add(job);
                db.SaveChanges();
            }
        }