Table of Contents

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

TEditPage

Type of edit page for specific promotion type.

Inheritance
object
PromotionsListBase<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

promotionInfoProvider IInfoProvider<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

PromotionType

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

id int

Returns

Task<ICommandResponse<RowActionResult>>