private static int WriteUserTeamSeasonToDB(UserTeamSeasons userTeamSeasonsInsert, SqlConnection db)
 {
     try
     {
         UserTeamSeasonRepository userTeamSeasonRepository = new UserTeamSeasonRepository();
         int userTeamSeasonRowsInserted = userTeamSeasonRepository.InsertUserTeamSeason(userTeamSeasonsInsert, db);
         return(userTeamSeasonRowsInserted);
     }
     catch (Exception ex)
     {
         Logger.Error("Program WriteUserTeamSeasonToDB error: " + ex.Message);
         return(0);
     }
 }
        public static void WriteUserTeamSeasonToDB(int pageId, UserTeamSeasons userTeamSeasonsInsert, SqlConnection db)
        {
            try
            {
                UserTeamSeasonRepository userTeamSeasonRepository = new UserTeamSeasonRepository();

                //Write UserTeamSeason to the db
                Globals.UserTeamSeasonRowsInserted = userTeamSeasonRepository.InsertUserTeamSeason(userTeamSeasonsInsert, db);
                Logger.Out("UserTeamSeason bulk insert complete (PageId: " + Convert.ToString(pageId) + ")");

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