public ActionResult Create()
 {
     RequisitionApplicantInterviewQuestionAnswer requisitionapplicantinterviewquestionanswer = new RequisitionApplicantInterviewQuestionAnswer();
     ViewBag.PossibleRequisitions = requisitionRepository.All;
     ViewBag.PossibleInterviewQuestionCategories = interviewquestioncategoryRepository.All;
     ViewBag.PossibleInterviewQuestions = interviewquestionanswerRepository.All;
     ViewBag.PossibleApplicants = applicantRepository.All;
     return View(requisitionapplicantinterviewquestionanswer);
 }
 public ActionResult Create(RequisitionApplicantInterviewQuestionAnswer requisitionapplicantinterviewquestionanswer)
 {
     if (ModelState.IsValid) {
         requisitionapplicantinterviewquestionanswerRepository.InsertOrUpdate(requisitionapplicantinterviewquestionanswer);
         requisitionapplicantinterviewquestionanswerRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleRequisitions = requisitionRepository.All;
         ViewBag.PossibleInterviewQuestionCategories = interviewquestioncategoryRepository.All;
         ViewBag.PossibleInterviewQuestions = interviewquestionanswerRepository.All;
         ViewBag.PossibleApplicants = applicantRepository.All;
         return View(requisitionapplicantinterviewquestionanswer);
     }
 }
 public ViewResult Search(RequisitionApplicantInterviewQuestionAnswer searchRequisitionApplicantInterviewQuestionAnswer)
 {
     if(searchRequisitionApplicantInterviewQuestionAnswer!=null)
     {
                     }
                 return View("Index",requisitionapplicantinterviewquestionanswerRepository.AllIncluding(requisitionapplicantinterviewquestionanswer => requisitionapplicantinterviewquestionanswer.Requisition, requisitionapplicantinterviewquestionanswer => requisitionapplicantinterviewquestionanswer.InterviewQuestionCategory, requisitionapplicantinterviewquestionanswer => requisitionapplicantinterviewquestionanswer.InterviewQuestion, requisitionapplicantinterviewquestionanswer => requisitionapplicantinterviewquestionanswer.Applicant));
 }
 public void InsertOrUpdate(RequisitionApplicantInterviewQuestionAnswer requisitionapplicantinterviewquestionanswer)
 {
     if (requisitionapplicantinterviewquestionanswer.RequisitionApplicantInterviewQuestionAnswerID == default(int)) {
         // New entity
         context.RequisitionApplicantInterviewQuestionAnswer.Add(requisitionapplicantinterviewquestionanswer);
     } else {
         // Existing entity
         context.Entry(requisitionapplicantinterviewquestionanswer).State = EntityState.Modified;
     }
 }