private void SyncPlayerData() { var helper = new PlayerHelper(); var hisPlayers = helper.GetPlayerListFromMySQL(); var myPlayers = helper.GetPlayerListFromMSSQL(); foreach(var player in myPlayers) { var hisPlayer = hisPlayers.Where(c => c.Id == player.Id).FirstOrDefault(); if(hisPlayer == null) { AddPlayer(helper, player); } else if(hisPlayer.IsCurrent != player.IsCurrent) { UpdatePlayer(helper, player, hisPlayer); } } }