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