C# Class Kooboo.Commerce.Products.ProductTypeService

Show file Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
Create ( CreateProductTypeRequest request ) : ProductType
Delete ( ProductType type ) : void
Disable ( ProductType type ) : bool
Enable ( ProductType type ) : bool
Find ( int id ) : ProductType
ProductTypeService ( CommerceInstance instance ) : System
Query ( ) : IQueryable
Update ( UpdateProductTypeRequest request ) : ProductType

Private Methods

Method Description
RefreshPredefinedFields ( List fields ) : void

Method Details

Create() public method

public Create ( CreateProductTypeRequest request ) : ProductType
request CreateProductTypeRequest
return ProductType

Delete() public method

public Delete ( ProductType type ) : void
type ProductType
return void

Disable() public method

public Disable ( ProductType type ) : bool
type ProductType
return bool

Enable() public method

public Enable ( ProductType type ) : bool
type ProductType
return bool

Find() public method

public Find ( int id ) : ProductType
id int
return ProductType

ProductTypeService() public method

public ProductTypeService ( CommerceInstance instance ) : System
instance Kooboo.Commerce.Data.CommerceInstance
return System

Query() public method

public Query ( ) : IQueryable
return IQueryable

Update() public method

public Update ( UpdateProductTypeRequest request ) : ProductType
request UpdateProductTypeRequest
return ProductType