diff --git a/src/main/java/Service/AccountService.java b/src/main/java/Service/AccountService.java new file mode 100644 index 0000000..3244cbd --- /dev/null +++ b/src/main/java/Service/AccountService.java @@ -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); + } +}