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