public Boolean addNewUser(user User) { UserDataAccess uda1 = new UserDataAccess(); int result = uda1.insertUser(User); if (result.Equals(1)) return true; else return false; }
public Boolean authenticateUser(user User) { UserDataAccess uda1 = new UserDataAccess(); user tmpAuthenticatedUser = uda1.getAuthenticatedUser(User.UserName, User.Password); if (User.UserName == tmpAuthenticatedUser.UserName && User.Password == tmpAuthenticatedUser.Password) { wrapperDataBuffer.WrapperObject.User1 = tmpAuthenticatedUser; return true; } else { return false; } }