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); }
public UserGameInfo GetGameInfoByUser(string userId) { return(_GameDataAccess.GetGameInfoByUser(userId)); }