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