Méthode | Description | |
---|---|---|
BrandService ( IBrandRepository brandRepository ) : System |
Constructor that requires a repository as a parameter.
|
|
Delete ( Brand givenBrand ) : void |
Method calls on repository to delete an existing brand in the database.
|
|
GetAllBrands ( ) : List |
Method calls on repository to return a list of all Brands in the database
|
|
Insert ( |
Method calls on repository to insert a new brand into the database.
|
|
Update ( |
Method calls on repository to update an existing Brand in the database.
|
public BrandService ( IBrandRepository brandRepository ) : System | ||
brandRepository | IBrandRepository | Repository to be used. |
Résultat | System |
public Delete ( Brand givenBrand ) : void | ||
givenBrand | Brand | Name of the brand to be deleted. |
Résultat | void |
public Insert ( |
||
givenBrand | Brand Data Transfer Object to be inserted into the database. | |
Résultat | void |
public Update ( |
||
givenBrand | Brand Data Transfer Object to the updated in the database. | |
Résultat | void |