예제 #1
0
        public ActionResult Edit(CodeTable codetable)
        {
            CodeTable editCodetable = codetable;

            if (ModelState.IsValid)
            {
                editCodetable.Save();
                return(RedirectToAction("Index"));
            }
            return(View(codetable));
        }
예제 #2
0
        public ActionResult Create(CodeTable codetable)
        {
            if (ModelState.IsValid)
            {
                CodeTable newCodeTable = codetable;
                newCodeTable.Save();
                return(RedirectToAction("Index"));
            }

            return(View(codetable));
        }