Méthode | 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. |
Résultat | System |
public Delete ( |
||
categoryToDelete | Category that is to be removed from the database. | |
Résultat | void |
public GetByName ( string categoryName ) : |
||
categoryName | string | The name of the category to retrieve. |
Résultat |
public Insert ( |
||
categoryToInsert | Category Data Transfer Object to insert into the database. | |
Résultat | void |
public Update ( |
||
categoryToUpdate | Category that is to be updated. | |
Résultat | void |