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