public ActionResult Create()
 {
     ApplicantRecruitmentTeam applicantrecruitmentteam = new ApplicantRecruitmentTeam();
     ViewBag.PossibleApplicants = applicantRepository.All;
     ViewBag.PossibleAssignRecruiterUsers = userRepository.All;
     return View(applicantrecruitmentteam);
 }
 public ActionResult Create(ApplicantRecruitmentTeam applicantrecruitmentteam)
 {
     if (ModelState.IsValid) {
         applicantrecruitmentteamRepository.InsertOrUpdate(applicantrecruitmentteam);
         applicantrecruitmentteamRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleApplicants = applicantRepository.All;
         ViewBag.PossibleAssignRecruiterUsers = userRepository.All;
         return View(applicantrecruitmentteam);
     }
 }
 public void InsertOrUpdate(ApplicantRecruitmentTeam applicantrecruitmentteam)
 {
     if (applicantrecruitmentteam.ApplicantRecruitmentTeamID == default(int)) {
         // New entity
         context.ApplicantRecruitmentTeam.Add(applicantrecruitmentteam);
     } else {
         // Existing entity
         context.Entry(applicantrecruitmentteam).State = EntityState.Modified;
     }
 }
 public ViewResult Search(ApplicantRecruitmentTeam searchApplicantRecruitmentTeam)
 {
     if(searchApplicantRecruitmentTeam!=null)
     {
                     }
                 return View("Index",applicantrecruitmentteamRepository.AllIncluding(applicantrecruitmentteam => applicantrecruitmentteam.Applicant, applicantrecruitmentteam => applicantrecruitmentteam.AssignRecruiterUser));
 }