View überarbeitet

Controller AdminController anfangen
This commit is contained in:
pbs2h21asc 2023-01-30 15:03:54 +01:00
parent 6cb48af976
commit 0550482a6b

View File

@ -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);
}