Click or drag to resize
CouponCodeInfoProviderGetCouponCodeInfo Method (String, SiteInfoIdentifier)

Note: This API is now obsolete.

Returns CouponCodeInfo with specified name.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use ICouponCodeInfoProvider.Get(string, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - CouponCodeInfo.Provider.")]
public static CouponCodeInfo GetCouponCodeInfo(
	string name,
	SiteInfoIdentifier siteIdentifier
)

Parameters

name
Type: SystemString
CouponCodeInfo name.
siteIdentifier
Type: CMS.DataEngineSiteInfoIdentifier
The site identifier.

Return Value

Type: CouponCodeInfo
See Also