private static int WriteUserTeamClassicLeagueToDB(UserTeamClassicLeagues userTeamClassicLeaguesInsert, SqlConnection db)
 {
     try
     {
         UserTeamClassicLeagueRepository userTeamClassicLeagueRepository = new UserTeamClassicLeagueRepository();
         int userTeamClassicLeagueRowsInserted = userTeamClassicLeagueRepository.InsertUserTeamClassicLeague(userTeamClassicLeaguesInsert, db);
         return(userTeamClassicLeagueRowsInserted);
     }
     catch (Exception ex)
     {
         Logger.Error("Program WriteUserTeamClassicLeagueToDB error: " + ex.Message);
         return(0);
     }
 }
        public static void WriteUserTeamClassicLeagueToDB(int pageId, UserTeamClassicLeagues userTeamClassicLeaguesInsert, SqlConnection db)
        {
            try
            {
                UserTeamClassicLeagueRepository userTeamClassicLeagueRepository = new UserTeamClassicLeagueRepository();

                //Write UserTeamClassicLeague to the db
                Globals.UserTeamClassicLeagueRowsInserted = userTeamClassicLeagueRepository.InsertUserTeamClassicLeague(userTeamClassicLeaguesInsert, db);
                Logger.Out("UserTeamClassicLeague bulk insert complete (PageId: " + Convert.ToString(pageId) + ")");

                userTeamClassicLeaguesInsert.Clear();
            }
            catch (Exception ex)
            {
                Logger.Error("Program WriteUserTeamClassicLeagueToDB error: " + ex.Message);
            }
        }