DiscountInfoProviderGetDiscountsInternal Method (Int32, Boolean) |
Note: This API is now obsolete.
Returns dataset of all discounts for specified site.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax [ObsoleteAttribute("Use DiscountInfoProviderExtensions.GetBySite(IDiscountInfoProvider, int, bool) instead.")]
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:
ObjectQueryDiscountInfoSee Also