C# Class Kooboo.Commerce.Promotions.PromotionService

Afficher le fichier Open project: Kooboo/Ecommerce Class Usage Examples

Méthodes publiques

Méthode Description
Create ( Kooboo.Commerce.Promotions.Promotion promotion ) : void
Delete ( Kooboo.Commerce.Promotions.Promotion promotion ) : void
Disable ( Kooboo.Commerce.Promotions.Promotion promotion ) : bool
Enable ( Kooboo.Commerce.Promotions.Promotion promotion ) : bool
Find ( int id ) : Kooboo.Commerce.Promotions.Promotion
PromotionService ( CommerceInstance instance ) : System
Query ( ) : IQueryable

Private Methods

Méthode Description
IsCouponAlreadyTaken ( string coupon, int candidatePromotionId ) : bool

Method Details

Create() public méthode

public Create ( Kooboo.Commerce.Promotions.Promotion promotion ) : void
promotion Kooboo.Commerce.Promotions.Promotion
Résultat void

Delete() public méthode

public Delete ( Kooboo.Commerce.Promotions.Promotion promotion ) : void
promotion Kooboo.Commerce.Promotions.Promotion
Résultat void

Disable() public méthode

public Disable ( Kooboo.Commerce.Promotions.Promotion promotion ) : bool
promotion Kooboo.Commerce.Promotions.Promotion
Résultat bool

Enable() public méthode

public Enable ( Kooboo.Commerce.Promotions.Promotion promotion ) : bool
promotion Kooboo.Commerce.Promotions.Promotion
Résultat bool

Find() public méthode

public Find ( int id ) : Kooboo.Commerce.Promotions.Promotion
id int
Résultat Kooboo.Commerce.Promotions.Promotion

PromotionService() public méthode

public PromotionService ( CommerceInstance instance ) : System
instance Kooboo.Commerce.Data.CommerceInstance
Résultat System

Query() public méthode

public Query ( ) : IQueryable
Résultat IQueryable