Class PromotionsListBase<TEditPage>
- Namespace
- Kentico.Xperience.Admin.DigitalCommerce.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalCommerce.dll
Base class for promotion listing pages.
public abstract class PromotionsListBase<TEditPage> : ListingPage, IPage where TEditPage : PromotionEditSectionBase
Type Parameters
TEditPageType of edit page for specific promotion type.
- Inheritance
-
objectPromotionsListBase<TEditPage>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
PromotionsListBase(IInfoProvider<PromotionInfo>)
Creates a new instance of PromotionsListBase<TEditPage> class.
protected PromotionsListBase(IInfoProvider<PromotionInfo> promotionInfoProvider)
Parameters
promotionInfoProviderIInfoProvider<PromotionInfo>Promotion info provider.
Properties
ObjectType
Type of the info objects that are listed. Corresponds to the OBJECT_TYPE property of the info object or PredefinedObjectType.
protected override string ObjectType { get; }
Property Value
- string
PromotionType
Promotion type.
protected abstract PromotionType PromotionType { get; }
Property Value
Methods
ConfigurePromotionsListing()
Configures table for listing promotions and Adds all columns and actions.
protected void ConfigurePromotionsListing()
Delete(int)
Deletes listing item specified by the id parameter.
[PageCommand(Permission = "Delete")]
public override Task<ICommandResponse<RowActionResult>> Delete(int id)
Parameters
idint
Returns
- Task<ICommandResponse<RowActionResult>>