Method | Description | |
---|---|---|
Delete ( |
Deletes a category.
|
|
GetAll ( ) : IEnumerable |
Returns all categories.
|
|
GetByName ( string name ) : |
Returns a category with a name matching the given name. Returns a null category if no match is found.
|
|
Insert ( |
Submits a new category for persistence.
|
|
Update ( |
Updates an existing category.
|
public Delete ( |
||
categoryDel | Category to delete | |
return | void |
public GetByName ( string name ) : |
||
name | string | Category name |
return |
public Insert ( |
||
newCategory | New category to save | |
return | void |
public Update ( |
||
categoryUpdate | Category to update | |
return | void |