/// <summary> /// Gets the current debate season that is ongoing, or returns null if there isn't an ongoing season. /// </summary> /// <param name="application">The application variable, "Application" should nromally do it.</param> /// <returns>Returns null if there is no current debate season or an error occured getting the season from the database., otherwise returns a debate season.</returns> public static DebateSeason GetCurrentDebateSeason(HttpApplicationState application) { int debateID = GetDebateSeasonID(application); if (debateID != -1) { return(DatabaseHandler.GetDebateSeason(debateID)); } else { return(null); } }