Class CategoryService
Inheritance
System.Object
CategoryService
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class CategoryService : Object, ICategoryService
Constructors
CategoryService(IApiService)
Declaration
public CategoryService(IApiService apiService)
Parameters
Type | Name | Description |
---|---|---|
IApiService | apiService |
Methods
GetCategories(Int32, Int32, String)
Get available categories for productLine
in storeId
.
Declaration
public Task<Category[]> GetCategories(int productLine, int storeId, string search = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | productLine | The product line to find categories for. |
System.Int32 | storeId | The store to find categories for. |
System.String | search | String to try and match a specific category Name |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Category[]> | Categories found. |