public PlayerTierInfo GetPlayerTier(int?PlayerID) { PlayerTierInfo playerTier = null; try { GameInfoContext gameInfoContext = new GameInfoContext(); playerTier = gameInfoContext.GetPlayerTier(PlayerID); if (playerTier == null) { _logger.InfoFormat(playerTier, "No PlayerTier has found.", "GetPlayerTier"); } else { _logger.InfoFormat(playerTier, "PlayerTier has found.", "GetPlayerTier"); } } catch (Exception ex) { _logger.ErrorFormat(ex.TargetSite, ex.Message, ex.Source, "GetPlayerTier"); } return(playerTier); }