示例#1
0
        public decimal AddProcessingFee(string userId, decimal amount)
        {
            UserGameInfo gameInfo = _GameDataAccess.GetGameInfoByUser(userId);

            if (gameInfo.IsEnrolledInGame)
            {
                decimal processingFee = amount * (decimal)0.0175;
                amount += processingFee;
            }
            return(amount);
        }
示例#2
0
 public UserGameInfo GetGameInfoByUser(string userId)
 {
     return(_GameDataAccess.GetGameInfoByUser(userId));
 }