public BankActivityService(CommerceBankAppContext context, ILastTransactionService lastTransactionService, IMailService mailService, IUserService userService) : base(context) { _lastTransactionService = lastTransactionService; _mailService = mailService; _userService = userService; }
//contructor injection(Dependency injection) public AccountService(IUserService userService, IPersonService personService, IBankActivityService bankActivityService, ILastTransactionService lastTransactionService, IMailService mailService) { _userService = userService; _personService = personService; _bankActivityService = bankActivityService; _lastTransactionService = lastTransactionService; _mailService = mailService; }