コード例 #1
0
        public ActionResult Edit(Champion champ)
        {
            if (ModelState.IsValid)
            {
                championService.InsertOrUpdate(champ);

                return RedirectToAction("Index");
            }

            return View(champ);
        }
コード例 #2
0
        public ActionResult Create(Champion model)
        {
            if (ModelState.IsValid)
            {
                championService.InsertOrUpdate(model);

                return RedirectToAction("Index");
            }

            return View(model);
        }