public ActionResult Create(NAICSCode nAICSCodes) { if (ModelState.IsValid) { db.NAICSCodes.Add(nAICSCodes); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nAICSCodes)); }
public ActionResult Create(ItemCode itemCodes) { if (ModelState.IsValid) { db.ItemCodes.Add(itemCodes); db.SaveChanges(); return(RedirectToAction("Index")); } else { throw new HttpException(500, "Internal Server Error"); } }
public ActionResult Create(DBECompany dBECompany) { if (ModelState.IsValid) { db.DBECompanies.Add(dBECompany); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dBECompany)); }