コード例 #1
0
        public ActionResult Applyforjob(int?id, int vcid, JobApplication jobApplication, Sollicitatiemodel sollicitatiemodel)
        {
            jobApplication.CandidateName        = sollicitatiemodel.CandidateName;
            jobApplication.CandidateLastName    = sollicitatiemodel.CandidateLastName;
            jobApplication.CandidateMailadress  = sollicitatiemodel.CandidateMailadress;
            jobApplication.ApplicationDate      = DateTime.Now;
            jobApplication.CandidatePhoneNumber = sollicitatiemodel.Candidatephonenumber;
            jobApplication.Enclosureurl         = sollicitatiemodel.Enclosureurl;
            jobApplication.Vacature_id          = vcid;

            db.JobApplications.Add(jobApplication);
            db.SaveChanges();


            return(RedirectToAction("index"));
        }
コード例 #2
0
 public ActionResult Applyforjob(int?id, int vcid, Student student, JobApplication jobApplication, Sollicitatiemodel sollicitatiemodel)
 {
     return(View(sollicitatiemodel));
 }