public static bool UpdateGame(Game game) { try { Update(game); return true; } catch { return false; } }
public static bool DeleteGame(Game game) { try { Delete(game); return true; } catch { return false; } }
public static bool InsertGame(Game game) { try { Add(game); return true; } catch { return false; } }
public static List<Account> GetTopGamers(Game game, int num) { return (from pupil in Account.All() join rs in GameResult.All() on pupil.AccountID equals rs.AccountID where rs.GameID == game.GameID orderby rs.GameScores descending select pupil).Take(num).ToList(); }
public List<Account> GetTopGamers(Game game, int num) { try { return Game.GetTopGamers(game, num); } catch { return null; } }