Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions d30bcc ... vs ccac99 ... for ruralHouses/src/businessLogic/AccountManager.java

Diff revisions: vs.
  @@ -43,9 +43,14 @@
43 43
44 44 }
45 45
46 - public boolean removeAccount(Account ac)throws RemoteException {
47 - if(this.dbMngr.removeAccount(ac))
48 - return true;
46 + public boolean removeAccount(int index)throws RemoteException {
47 + AdminManager adm = new AdminManager();
48 + try {
49 + if(this.dbMngr.removeAccount(adm.getAllOwners().get(index)))
50 + return true;
51 + } catch (Exception e) {
52 + e.printStackTrace();
53 + }
49 54 return false;
50 55
51 56 }