C# Class openTill.Persistence.EmployeeRepository

A class that actually performs the CRUD operations for an Employee.
Inheritance: IEmployeeRepository
Show file Open project: CIT275DevGroup/openTill

Public Methods

Method Description
GetAll ( ) : IEnumerable

Returns all employees.

ValidateUser ( string userName, string password ) : bool

Validates an employee by confirming that the given password matches the password associated with the given username.

Method Details

GetAll() public method

Returns all employees.
public GetAll ( ) : IEnumerable
return IEnumerable

ValidateUser() public method

Validates an employee by confirming that the given password matches the password associated with the given username.
public ValidateUser ( string userName, string password ) : bool
userName string String username
password string String password
return bool