View überarbeitet
Controller AdminController anfangen
This commit is contained in:
parent
6cb48af976
commit
0550482a6b
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user