Esempio n. 1
0
 public static bool UpdateGame(Game game)
 {
     try
     {
         Update(game);
         return true;
     }
     catch
     {
         return false;
     }
 }
Esempio n. 2
0
 public static bool DeleteGame(Game game)
 {
     try
     {
         Delete(game);
         return true;
     }
     catch
     {
         return false;
     }
 }
Esempio n. 3
0
 public static bool InsertGame(Game game)
 {
     try
     {
         Add(game);
         return true;
     }
     catch
     {
         return false;
     }
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 public List<Account> GetTopGamers(Game game, int num)
 {
     try { return Game.GetTopGamers(game, num); }
     catch { return null; }
 }