public ActionResult AddGamesJSON(Game g) { Database.AddGame(g); return Json(Database.GetAll(), JsonRequestBehavior.AllowGet); }
public ActionResult Create(Game newGame) { Database.AddGame(newGame); return RedirectToAction("Index"); }
public static void AddGame(Game g) { _games.Add(g); }