public ActionResult Delete(Game game) { var dsGame = games.First(p => p.id == game.id); games.Remove(dsGame); return new EmptyResult(); }
public ActionResult Put(Game game) { var dsGame = games.First(p => p.id == game.id); games[games.ToList().IndexOf(dsGame)] = game; return new EmptyResult(); }