Ejemplo n.º 1
0
        public ActionResult Edit(Game game)
        {
            if (ModelState.IsValid)
            {
                db.Edit(game);
                return(RedirectToAction("Details", new { id = game.Id }));
            }

            return(View(game));
        }