public ActionResult Create(ApplicantVideo applicantvideo)
 {
     if (ModelState.IsValid) {
         applicantvideoRepository.InsertOrUpdate(applicantvideo);
         applicantvideoRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleApplicants = applicantRepository.All;
         return View(applicantvideo);
     }
 }
 public void InsertOrUpdate(ApplicantVideo applicantvideo)
 {
     if (applicantvideo.ApplicantVideoID == default(int)) {
         // New entity
         context.ApplicantVideo.Add(applicantvideo);
     } else {
         // Existing entity
         context.Entry(applicantvideo).State = EntityState.Modified;
     }
 }
 public ActionResult Create()
 {
     ApplicantVideo applicantvideo = new ApplicantVideo();
     ViewBag.PossibleApplicants = applicantRepository.All;
     return View(applicantvideo);
 }
 public ViewResult Search(ApplicantVideo searchApplicantVideo)
 {
     if(searchApplicantVideo!=null)
     {
                     }
                 return View("Index",applicantvideoRepository.AllIncluding(applicantvideo => applicantvideo.Applicant));
 }