Exemplo n.º 1
0
        public PlayerPointBalance GetPlayerPointBalance(int?PlayerID)
        {
            PlayerPointBalance playerPointBalance = null;

            try
            {
                GameInfoContext gameInfoContext = new GameInfoContext();
                playerPointBalance = gameInfoContext.GetPlayerPointBalance(PlayerID);
                if (playerPointBalance == null)
                {
                    _logger.InfoFormat(playerPointBalance, "No PlayerPointBalance has found.", "GetPlayerPointBalance");
                }
                else
                {
                    _logger.InfoFormat(playerPointBalance, "PlayerPointBalance has found.", "GetPlayerPointBalance");
                }
            }
            catch (Exception ex)
            {
                _logger.ErrorFormat(ex.TargetSite, ex.Message, ex.Source, "GetPlayerPointBalance");
            }
            return(playerPointBalance);
        }