Method | Description | |
---|---|---|
FinalizeSale ( |
Method calculates sale total and tax.
|
|
GetSalesByEmployee ( string userName ) : List |
Method returns all sales based on employee username.
|
|
Insert ( |
Method inserts a new sale into the database
|
|
SaleService ( ISaleRepository saleRepository ) : System |
A constructor that requires a repository as a parameter.
|
|
Update ( |
Method updates a sale that already exists in the database
|
public FinalizeSale ( |
||
sale | Method takes on SaleDTO as an argument. | |
return |
public GetSalesByEmployee ( string userName ) : List |
||
userName | string | Accepts a single username in the form of a string. |
return | List |
public Insert ( |
||
sale | Takes a single SaleDTO as an argument. | |
return | void |
public SaleService ( ISaleRepository saleRepository ) : System | ||
saleRepository | ISaleRepository | Repository to be used. |
return | System |
public Update ( |
||
sale | Takes a single SaleDTO as an argument. | |
return | void |