public ActionResult Create(RequisitionJDLibraryCategory requisitionjdlibrarycategory)
 {
     if (ModelState.IsValid) {
         requisitionjdlibrarycategoryRepository.InsertOrUpdate(requisitionjdlibrarycategory);
         requisitionjdlibrarycategoryRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleParentRequisitionJDLibraryCategories = requisitionjdlibrarycategoryRepository.All;
         return View(requisitionjdlibrarycategory);
     }
 }
 public ViewResult Search(RequisitionJDLibraryCategory searchRequisitionJDLibraryCategory)
 {
     if(searchRequisitionJDLibraryCategory!=null)
     {
                     }
                 return View("Index",requisitionjdlibrarycategoryRepository.AllIncluding(requisitionjdlibrarycategory => requisitionjdlibrarycategory.ParentRequisitionJDLibraryCategory));
 }
 public ActionResult Create()
 {
     RequisitionJDLibraryCategory requisitionjdlibrarycategory = new RequisitionJDLibraryCategory();
     ViewBag.PossibleParentRequisitionJDLibraryCategories = requisitionjdlibrarycategoryRepository.All;
     return View(requisitionjdlibrarycategory);
 }
 public void InsertOrUpdate(RequisitionJDLibraryCategory requisitionjdlibrarycategory)
 {
     if (requisitionjdlibrarycategory.RequisitionJDLibraryCategoryID == default(int)) {
         // New entity
         context.RequisitionJDLibraryCategory.Add(requisitionjdlibrarycategory);
     } else {
         // Existing entity
         context.Entry(requisitionjdlibrarycategory).State = EntityState.Modified;
     }
 }