Method | Description | |
---|---|---|
Delete ( |
Deletes a product.
|
|
GetAll ( ) : IEnumerable |
Returns all products.
|
|
GetByBrand ( string brand ) : IEnumerable |
Returns all products that match the given brand.
|
|
GetByUPC ( string upc ) : |
Returns a product matching the given upc. If no matching product is found an empty product is returned.
|
|
Insert ( |
Submits a new product for persistence.
|
|
Update ( |
Updates an existing product.
|
public Delete ( |
||
productDel | Product to delete | |
return | void |
public GetByBrand ( string brand ) : IEnumerable |
||
brand | string | String product brand |
return | IEnumerable |
public GetByUPC ( string upc ) : |
||
upc | string | String product upc |
return |
public Insert ( |
||
newProduct | New product to save | |
return | void |
public Update ( |
||
productUpdate | Product to update | |
return | void |