protected int PerformPrimaryMultiplierPayout(CommandParametersModel parameters, double payoutPercentage) { int payout = 0; CurrencyRequirementModel currencyRequirement = this.GetPrimaryCurrencyRequirement(); if (currencyRequirement != null) { payout = (int)(currencyRequirement.GetAmount(parameters) * payoutPercentage); currencyRequirement.AddSubtractAmount(parameters.User, payout); } return(payout); }
protected int GetPrimaryBetAmount(CommandParametersModel parameters) { CurrencyRequirementModel currencyRequirement = this.GetPrimaryCurrencyRequirement(); return((currencyRequirement != null) ? currencyRequirement.GetAmount(parameters) : 0); }