Пример #1
0
        public PlayerCashBalance GetPlayerCashBalance(int?PlayerID)
        {
            PlayerCashBalance playerCashBalance = null;

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