Method | Description | |
---|---|---|
CategoryService ( ICategoryRepository categoryRepository ) : System |
Constructor that requires a repository as a parameter.
|
|
Delete ( |
Method calls on repository to remove a Category field from the database.
|
|
GetAll ( ) : List |
Method calls on repository in the DAL to get all Category listing form the database.
|
|
GetByName ( string categoryName ) : |
Method calls on repository for a specific category from the database based on name.
|
|
Insert ( |
Method calls on repository to insert a new category field into the database.
|
|
Update ( |
Method calls on repository to update an exisiting field in the database.
|
public CategoryService ( ICategoryRepository categoryRepository ) : System | ||
categoryRepository | ICategoryRepository | Repository to be used. |
return | System |
public Delete ( |
||
categoryToDelete | Category that is to be removed from the database. | |
return | void |
public GetByName ( string categoryName ) : |
||
categoryName | string | The name of the category to retrieve. |
return |
public Insert ( |
||
categoryToInsert | Category Data Transfer Object to insert into the database. | |
return | void |
public Update ( |
||
categoryToUpdate | Category that is to be updated. | |
return | void |