Skip to content

Commit

Permalink
account service
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsundin committed Jan 25, 2024
1 parent 449b3b0 commit 389bbef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/java/Service/AccountService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package Service;

import Model.Account;
import DAO.AccountDAO;

public class AccountService {
AccountDAO accountDAO;

public AccountService(){
accountDAO = new AccountDAO();
}

public AccountService(AccountDAO accountDAO){
this.accountDAO = accountDAO;
}

public Account addAccount(Account account){
return accountDAO.insertAccount(account);
}
}

0 comments on commit 389bbef

Please sign in to comment.