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

Inheritance: Kooboo.Commerce.Web.Mvc.Controllers.CommerceControllerBase
Show file Open project: Kooboo/Ecommerce

Public Methods

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

Private Methods

Method 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 method

public CreateDefaultVariantModel ( ProductType productType ) : ProductVariantModel
productType ProductType
return Kooboo.Commerce.Web.Areas.Commerce.Models.Products.ProductVariantModel

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

ProductController() public method

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
return System