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");
 }
Example #3
0
 public static void AddGame(Game g)
 {
     _games.Add(g);
 }