C# Class openTill.Domain.Services.EmployeeService

A road map to perform the CRUD operations for an Employee
Inheritance: IEmployeeService
Mostra file Open project: CIT275DevGroup/openTill

Public Methods

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.

Method Details

EmployeeService() public method

Constructor that requires a repository as a parameter.
public EmployeeService ( IEmployeeRepository employeeRepository ) : System
employeeRepository IEmployeeRepository Repository to be used.
return System

GetAll() public method

Method calls on repositorty to return a list of all Employees from the database.
public GetAll ( ) : List
return List

ValidateUser() public method

Method calls on repository to return a single Employee from the database based on SSN.
public ValidateUser ( string userName, string password ) : bool
userName string
password string
return bool