public ActionResult Edit(CodeTable codetable) { CodeTable editCodetable = codetable; if (ModelState.IsValid) { editCodetable.Save(); return(RedirectToAction("Index")); } return(View(codetable)); }
public ActionResult Create(CodeTable codetable) { if (ModelState.IsValid) { CodeTable newCodeTable = codetable; newCodeTable.Save(); return(RedirectToAction("Index")); } return(View(codetable)); }