Class AdminService

java.lang.Object
com.dada.banking_project.services.impl.AdminService

@Service public class AdminService extends Object
  • Constructor Details

    • AdminService

      public AdminService()
  • Method Details

    • addAccount

      public Account addAccount(AccountDTO accountDTO)
    • findAllAccounts

      public List<Account> findAllAccounts()
    • getAccountBalance

      public BigDecimal getAccountBalance(Integer accountId)
    • updateAccountBalance

      public Account updateAccountBalance(Integer accountId, BigDecimal newBalance)
    • deleteAccount

      public void deleteAccount(Integer id)
      This method deletes an account with the specified id.
      Parameters:
      id - The id of the account to be deleted.