C# Класс Kooboo.Commerce.Web.Areas.Commerce.Controllers.ProductController

Наследование: Kooboo.Commerce.Web.Mvc.Controllers.CommerceControllerBase
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateDefaultVariantModel ( ProductType productType ) : ProductVariantModel
Index ( ) : System.Web.Mvc.ActionResult
ProductController ( SettingService settingService, ProductService productService, ProductTypeService productTypeService, BrandService brandService, CategoryService categoryService ) : System

Приватные методы

Метод Описание
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

Описание методов

CreateDefaultVariantModel() публичный Метод

public CreateDefaultVariantModel ( ProductType productType ) : ProductVariantModel
productType ProductType
Результат Kooboo.Commerce.Web.Areas.Commerce.Models.Products.ProductVariantModel

Index() публичный Метод

public Index ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult

ProductController() публичный Метод

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
Результат System