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

            return View(codetable);
        }