public ActionResult Create(RequisitionApprovalStatusCategory requisitionapprovalstatuscategory)
 {
     if (ModelState.IsValid) {
         requisitionapprovalstatuscategoryRepository.InsertOrUpdate(requisitionapprovalstatuscategory);
         requisitionapprovalstatuscategoryRepository.Save();
         return RedirectToAction("Index");
     } else {
         return View(requisitionapprovalstatuscategory);
     }
 }
 public void InsertOrUpdate(RequisitionApprovalStatusCategory requisitionapprovalstatuscategory)
 {
     if (requisitionapprovalstatuscategory.RequisitionApprovalStatusCategoryID == default(int)) {
         // New entity
         context.RequisitionApprovalStatusCategory.Add(requisitionapprovalstatuscategory);
     } else {
         // Existing entity
         context.Entry(requisitionapprovalstatuscategory).State = EntityState.Modified;
     }
 }
 public ActionResult Create()
 {
     RequisitionApprovalStatusCategory requisitionapprovalstatuscategory = new RequisitionApprovalStatusCategory();
     return View(requisitionapprovalstatuscategory);
 }
 public ViewResult Search(RequisitionApprovalStatusCategory searchRequisitionApprovalStatusCategory)
 {
     if(searchRequisitionApprovalStatusCategory!=null)
     {
                     }
                 return View("Index",requisitionapprovalstatuscategoryRepository.All);
 }