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