From 0550482a6b09ad99da6114e8ff216be52f06d4e0 Mon Sep 17 00:00:00 2001 From: pbs2h21asc Date: Mon, 30 Jan 2023 15:03:54 +0100 Subject: [PATCH] =?UTF-8?q?View=20=C3=BCberarbeitet=20Controller=20AdminCo?= =?UTF-8?q?ntroller=20anfangen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bib/essensbestellungsverwaltung/AdminController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java b/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java index 5897efe..ef5200c 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java @@ -30,7 +30,11 @@ public class AdminController { String[] userData = new String[]{ln,fn,pw,emailString}; String[] addressData = new String[]{st,nr,plzString,cityString}; - AccountMgr.createWorker(userData, addressData); + Address adresse = new Address(st,nr,plzString,cityString); + + Worker worker = new Worker(ln,fn,pw,emailString,adresse); + + AccountMgr.createWorker(worker); }