C# Class Kooboo.Commerce.Web.Areas.Commerce.Controllers.PromotionController

Inheritance: Kooboo.Commerce.Web.Framework.Mvc.CommerceController
Mostra file Open project: Kooboo/Ecommerce

Public Methods

Method Description
BasicInfo ( string policy, int id ) : System.Web.Mvc.ActionResult
Complete ( int id ) : System.Web.Mvc.ActionResult
Conditions ( int id ) : System.Web.Mvc.ActionResult
Index ( int page = 1, int pageSize = 50 ) : System.Web.Mvc.ActionResult
Policy ( int id ) : System.Web.Mvc.ActionResult
PromotionController ( PromotionService promotionService, IPromotionPolicyProvider policyProvider ) : System

Private Methods

Method Description
BasicInfo ( PromotionEditorModel model ) : System.Web.Mvc.ActionResult
Delete ( PromotionRowModel model ) : System.Web.Mvc.ActionResult
Disable ( PromotionRowModel model ) : System.Web.Mvc.ActionResult
Enable ( PromotionRowModel model ) : System.Web.Mvc.ActionResult
EnablePromotion ( int id ) : System.Web.Mvc.ActionResult
GetOtherPromotions ( int promotionId ) : IList
Steps ( int step ) : System.Web.Mvc.ActionResult
UpdateConditions ( int promotionId, IEnumerable conditions ) : void
UpdatePolicyConfig ( int promotionId, [ config ) : void

Method Details

BasicInfo() public method

public BasicInfo ( string policy, int id ) : System.Web.Mvc.ActionResult
policy string
id int
return System.Web.Mvc.ActionResult

Complete() public method

public Complete ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Conditions() public method

public Conditions ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Index() public method

public Index ( int page = 1, int pageSize = 50 ) : System.Web.Mvc.ActionResult
page int
pageSize int
return System.Web.Mvc.ActionResult

Policy() public method

public Policy ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

PromotionController() public method

public PromotionController ( PromotionService promotionService, IPromotionPolicyProvider policyProvider ) : System
promotionService Kooboo.Commerce.Promotions.PromotionService
policyProvider IPromotionPolicyProvider
return System