public Employee GetEmployee(string Username, string Password) { EmployeeArr employeeArr = new EmployeeArr(); employeeArr.Fill(); employeeArr = employeeArr.FilterUsername(Username, Password); return(employeeArr[0] as Employee); }
private bool CheckEmployee(string Username, string Password) { EmployeeArr employeeArr = new EmployeeArr(); employeeArr.Fill(); employeeArr = employeeArr.FilterUsername(Username, Encrypt(Password)); if (employeeArr.Count == 1) { return(true); } return(false); }