Click or drag to resize
DiscountInfoProviderGetDiscountsInternal Method (Int32, Boolean)
Returns dataset of all discounts for specified site.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
protected virtual ObjectQuery<DiscountInfo> GetDiscountsInternal(
	int siteId,
	bool onlyEnabled
)

Parameters

siteId
Type: SystemInt32
Site ID
onlyEnabled
Type: SystemBoolean
True - only enable discounts are returned. False - both enabled and disabled discounts are returned.

Return Value

Type: ObjectQueryDiscountInfo
See Also