public ActionResult Create()
 {
     ApplicantSubmissionInfo applicantsubmissioninfo = new ApplicantSubmissionInfo();
     ViewBag.PossibleApplicants = applicantRepository.All;
     ViewBag.PossibleSubmittedByUsers = userRepository.All;
     ViewBag.PossibleRequisitions = requisitionRepository.All;
     ViewBag.PossibleSubmitToCompanies = companyRepository.All;
     ViewBag.PossibleSubmitToContacts = contactRepository.All;
     ViewBag.PossibleSubmitToHiringManagerUsers = userRepository.All;
     ViewBag.PossibleApplicantSubmissionFeedbackCategories = applicantsubmissionfeedbackcategoryRepository.All;
     return View(applicantsubmissioninfo);
 }
 public ActionResult Create(ApplicantSubmissionInfo applicantsubmissioninfo)
 {
     if (ModelState.IsValid) {
         applicantsubmissioninfoRepository.InsertOrUpdate(applicantsubmissioninfo);
         applicantsubmissioninfoRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleApplicants = applicantRepository.All;
         ViewBag.PossibleSubmittedByUsers = userRepository.All;
         ViewBag.PossibleRequisitions = requisitionRepository.All;
         ViewBag.PossibleSubmitToCompanies = companyRepository.All;
         ViewBag.PossibleSubmitToContacts = contactRepository.All;
         ViewBag.PossibleSubmitToHiringManagerUsers = userRepository.All;
         ViewBag.PossibleApplicantSubmissionFeedbackCategories = applicantsubmissionfeedbackcategoryRepository.All;
         return View(applicantsubmissioninfo);
     }
 }
 public void InsertOrUpdate(ApplicantSubmissionInfo applicantsubmissioninfo)
 {
     if (applicantsubmissioninfo.ApplicantSubmissionWithoutRequisitionID == default(int)) {
         // New entity
         context.ApplicantSubmissionInfo.Add(applicantsubmissioninfo);
     } else {
         // Existing entity
         context.Entry(applicantsubmissioninfo).State = EntityState.Modified;
     }
 }
 public ViewResult Search(ApplicantSubmissionInfo searchApplicantSubmissionInfo)
 {
     if(searchApplicantSubmissionInfo!=null)
     {
                     }
                 return View("Index",applicantsubmissioninfoRepository.AllIncluding(applicantsubmissioninfo => applicantsubmissioninfo.Applicant, applicantsubmissioninfo => applicantsubmissioninfo.SubmittedByUser, applicantsubmissioninfo => applicantsubmissioninfo.Requisition, applicantsubmissioninfo => applicantsubmissioninfo.SubmitToCompany, applicantsubmissioninfo => applicantsubmissioninfo.SubmitToContact, applicantsubmissioninfo => applicantsubmissioninfo.SubmitToHiringManagerUser, applicantsubmissioninfo => applicantsubmissioninfo.ApplicantSubmissionFeedbackCategory));
 }