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

Inheritance: Kooboo.Commerce.Web.Mvc.Controllers.CommerceControllerBase
Afficher le fichier Open project: Kooboo/Ecommerce

Méthodes publiques

Méthode Description
CreateDefaultVariantModel ( ProductType productType ) : ProductVariantModel
Index ( ) : System.Web.Mvc.ActionResult
ProductController ( SettingService settingService, ProductService productService, ProductTypeService productTypeService, BrandService brandService, CategoryService categoryService ) : System

Private Methods

Méthode Description
Create ( int productTypeId ) : System.Web.Mvc.ActionResult
Delete ( ProductModel model ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
DoSave ( ProductEditorModel model ) : Product
Edit ( int id ) : System.Web.Mvc.ActionResult
Get ( int id = null, int productTypeId = null ) : System.Web.Mvc.ActionResult
GetCategories ( int parentId = null ) : System.Web.Mvc.ActionResult
GetImageTypes ( ) : System.Web.Mvc.ActionResult
GetProductType ( int id ) : System.Web.Mvc.ActionResult
PrepareProductEditing ( ProductType productType, Product product ) : void
Save ( ProductEditorModel model ) : System.Web.Mvc.ActionResult
SearchBrands ( string term, int page, int pageSize = 10 ) : System.Web.Mvc.ActionResult
SearchCategories ( string term ) : System.Web.Mvc.ActionResult
UpdateProduct ( Product product, ProductEditorModel model ) : void
ValidateFieldUniqueness ( int productId, string fieldName, string fieldValue, string fieldType ) : System.Web.Mvc.ActionResult

Method Details

CreateDefaultVariantModel() public méthode

public CreateDefaultVariantModel ( ProductType productType ) : ProductVariantModel
productType ProductType
Résultat Kooboo.Commerce.Web.Areas.Commerce.Models.Products.ProductVariantModel

Index() public méthode

public Index ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

ProductController() public méthode

public ProductController ( SettingService settingService, ProductService productService, ProductTypeService productTypeService, BrandService brandService, CategoryService categoryService ) : System
settingService SettingService
productService ProductService
productTypeService Kooboo.Commerce.Products.ProductTypeService
brandService BrandService
categoryService CategoryService
Résultat System