public ActionResult Create(ApplicantDocumentCategory applicantdocumentcategory)
 {
     if (ModelState.IsValid) {
         applicantdocumentcategoryRepository.InsertOrUpdate(applicantdocumentcategory);
         applicantdocumentcategoryRepository.Save();
         return RedirectToAction("Index");
     } else {
         return View();
     }
 }
 public void InsertOrUpdate(ApplicantDocumentCategory applicantdocumentcategory)
 {
     if (applicantdocumentcategory.ApplicantDocumentCategoryID == default(int)) {
         // New entity
         context.ApplicantDocumentCategory.Add(applicantdocumentcategory);
     } else {
         // Existing entity
         context.Entry(applicantdocumentcategory).State = EntityState.Modified;
     }
 }
 public ViewResult Search(ApplicantDocumentCategory searchApplicantDocumentCategory)
 {
     if(searchApplicantDocumentCategory!=null)
     {
                     }
                 return View("Index",applicantdocumentcategoryRepository.All);
 }