public ActionResult Edit(Game game) { if (ModelState.IsValid) { context.Games.Update(game); return RedirectToAction("Index"); } return View(game); }
public ActionResult Create(Game game) { if (ModelState.IsValid) { context.Games.Insert(game); return RedirectToAction("Index"); } return View(game); }