public ActionResult Create(int applicantId)
 {
     ApplicantSkillsExpertise applicantskillsexpertise = new ApplicantSkillsExpertise();
     applicantskillsexpertise.ApplicantID = applicantId;
     ViewBag.PossibleSkillsExpEduCategories = skillsexpeducategoryRepository.All;
     ViewBag.PossibleSkillsExpEdus = skillsexpeduRepository.All;
     ViewBag.PossibleManagerRatingScales = ratingscaleRepository.All;
     return View(applicantskillsexpertise);
 }
 public ActionResult Create(ApplicantSkillsExpertise applicantskillsexpertise, int applicantId)
 {
     if (ModelState.IsValid) {
         applicantskillsexpertiseRepository.InsertOrUpdate(applicantskillsexpertise);
         applicantskillsexpertiseRepository.Save();
         return RedirectToAction("Index", new { applicantId=applicantId });
     } else {
         ViewBag.PossibleSkillsExpEduCategories = skillsexpeducategoryRepository.All;
         ViewBag.PossibleSkillsExpEdus = skillsexpeduRepository.All;
         ViewBag.PossibleManagerRatingScales = ratingscaleRepository.All;
         return View(applicantskillsexpertise);
     }
 }
 public ViewResult Search(ApplicantSkillsExpertise searchApplicantSkillsExpertise, int applicantId)
 {
     if(searchApplicantSkillsExpertise!=null)
     {
                     }
                 return View("Index",applicantskillsexpertiseRepository.AllIncluding(applicantId, applicantskillsexpertise => applicantskillsexpertise.Applicant, applicantskillsexpertise => applicantskillsexpertise.SkillsExpEduCategory, applicantskillsexpertise => applicantskillsexpertise.SkillsExpEdu, applicantskillsexpertise => applicantskillsexpertise.ManagerRatingScale, applicantskillsexpertise => applicantskillsexpertise.VerifiedByUser));
 }
 public void InsertOrUpdate(ApplicantSkillsExpertise applicantskillsexpertise)
 {
     if (applicantskillsexpertise.ApplicantSkillsExpertiseID == default(int)) {
         // New entity
         context.ApplicantSkillsExpertise.Add(applicantskillsexpertise);
     } else {
         // Existing entity
         context.Entry(applicantskillsexpertise).State = EntityState.Modified;
     }
 }