public ActionResult Create()
 {
     ApplicantProfileRequestList applicantprofilerequestlist = new ApplicantProfileRequestList();
     ViewBag.PossibleApplicants = applicantRepository.All;
     ViewBag.PossibleRequestedByUsers = userRepository.All;
     return View(applicantprofilerequestlist);
 }
 public ActionResult Create(ApplicantProfileRequestList applicantprofilerequestlist)
 {
     if (ModelState.IsValid) {
         applicantprofilerequestlistRepository.InsertOrUpdate(applicantprofilerequestlist);
         applicantprofilerequestlistRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleApplicants = applicantRepository.All;
         ViewBag.PossibleRequestedByUsers = userRepository.All;
         return View(applicantprofilerequestlist);
     }
 }
 public void InsertOrUpdate(ApplicantProfileRequestList applicantprofilerequestlist)
 {
     if (applicantprofilerequestlist.ApplicantProfileRequestListID == default(int)) {
         // New entity
         context.ApplicantProfileRequestList.Add(applicantprofilerequestlist);
     } else {
         // Existing entity
         context.Entry(applicantprofilerequestlist).State = EntityState.Modified;
     }
 }
 public ViewResult Search(ApplicantProfileRequestList searchApplicantProfileRequestList)
 {
     if(searchApplicantProfileRequestList!=null)
     {
                     }
                 return View("Index",applicantprofilerequestlistRepository.AllIncluding(applicantprofilerequestlist => applicantprofilerequestlist.Applicant, applicantprofilerequestlist => applicantprofilerequestlist.RequestedByUser));
 }