Method | Description | |
---|---|---|
CategoriesDB ( ) : System | ||
Dispose ( ) : void | ||
GetCategoriesByParentId ( int parentCategroyId ) : CategoriesDataComponent.CategoriesDataTable | ||
GetCategoryById ( int id ) : CategoriesDataComponent.CategoriesDataTable | ||
GetParentCategoriesById ( int categoryId ) : CategoriesDataComponent.CategoriesDataTable | ||
InsertCategory ( int parentCategoryId, string name ) : int |
InsertCategory
|
|
MoveCategory ( int categoryId, int newParentCategoryId ) : bool | ||
RemoveCategory ( int categoryId ) : bool | ||
UpdateCategoryName ( int categoryId, string newName ) : void |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
public GetCategoriesByParentId ( int parentCategroyId ) : CategoriesDataComponent.CategoriesDataTable | ||
parentCategroyId | int | |
return | CategoriesDataComponent.CategoriesDataTable |
public static GetCategoryById ( int id ) : CategoriesDataComponent.CategoriesDataTable | ||
id | int | |
return | CategoriesDataComponent.CategoriesDataTable |
public static GetParentCategoriesById ( int categoryId ) : CategoriesDataComponent.CategoriesDataTable | ||
categoryId | int | |
return | CategoriesDataComponent.CategoriesDataTable |
public static InsertCategory ( int parentCategoryId, string name ) : int | ||
parentCategoryId | int | |
name | string | |
return | int |
public static MoveCategory ( int categoryId, int newParentCategoryId ) : bool | ||
categoryId | int | |
newParentCategoryId | int | |
return | bool |
public static RemoveCategory ( int categoryId ) : bool | ||
categoryId | int | |
return | bool |
public static UpdateCategoryName ( int categoryId, string newName ) : void | ||
categoryId | int | |
newName | string | |
return | void |