Method | Description | |
---|---|---|
EmployeeService ( IEmployeeRepository employeeRepository ) : System |
Constructor that requires a repository as a parameter.
|
|
GetAll ( ) : List |
Method calls on repositorty to return a list of all Employees from the database.
|
|
ValidateUser ( string userName, string password ) : bool |
Method calls on repository to return a single Employee from the database based on SSN.
|
public EmployeeService ( IEmployeeRepository employeeRepository ) : System | ||
employeeRepository | IEmployeeRepository | Repository to be used. |
return | System |
public ValidateUser ( string userName, string password ) : bool | ||
userName | string | |
password | string | |
return | bool |