public static void SaveFinishedTournamendToDB(ITournament tournament, String username) { TournamentDL tdl = new TournamentDL(); tdl.UpdateTournament(new TournamentPers(tournament.Name, username, tournament.GameMode.ToString(), tournament.AmountSets, tournament.AmountGoalsperSet, tournament.IsRanked, true)); }
public static void AddTournament(String turniername, String username, String gamemode, int amountSets, int amountGoals, bool isRanked) { TournamentDL tdl = new TournamentDL(); tdl.CreateTournament(new TournamentPers(turniername, username, gamemode, amountSets, amountGoals, isRanked, false)); }
public static TournamentPers FindTournament(String turniername) { TournamentDL tdl = new TournamentDL(); return(tdl.FindTournament(turniername)); }