public void insertEmployee(String username, String password, String name) { try { userDAO.insertEmployee(username, MD5Convert.getMd5Hash(password), name); } catch (Exception exception) { throw exception; } }
public User login(String username, String password) { User user = null; try { user = userDAO.getUser(username, MD5Convert.getMd5Hash(password)); //MessageBox.Show("In DAO" + user.name); } catch ( Exception exception) { throw exception; } return user; }