Пример #1
0
        public PlayerPromoBalance GetPlayerPromoBalance(int?PlayerID)
        {
            PlayerPromoBalance playerPromoBalance = null;

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