public BankAccountService(IBankAccountRepository bankAccountRepo, ICashTransactionsRepository cashTransactionsRepo, IHttpContextAccessor httpContextAccessor) { _bankAccountRepo = bankAccountRepo; _cashTransactionsRepo = cashTransactionsRepo; _httpContextAccessor = httpContextAccessor; }
public CashTransactionsService(VirtualBankDbContext dbContext, ICustomerRepository customersRepo, IBankAccountRepository bankAccountRepo, ICashTransactionsRepository cashTransactionsRepo, IHttpContextAccessor httpContextAccessor) { _dbContext = dbContext; _customerRepo = customersRepo; _bankAccountRepo = bankAccountRepo; _cashTransactionsRepo = cashTransactionsRepo; _httpContextAccessor = httpContextAccessor; }