How nhtaliyev/bankingsystem works
BankingSystem is a .NET banking backend organized around authentication, accounts, cards, and transactions, with business services separated from domain models and EF Core repositories. The apparent user workflow is authentication followed by account/card and transaction operations, but the tree and excerpts show no controllers or route handlers, so API-to-service dispatch is not established. Auth supports registration, login, refresh/logout, password recovery, and email confirmation. Account/card and persistence relationships are supported by the source index; transaction-service behavior is unsampled.
Main entry points: GenericRepository.cs Generic repository · CardService.cs Card services · AppDbContext.cs EF context · AuthService.cs Authentication
Components 19
API host
- API host
BankingSystem/BankingSystem.API/Program.cs
Business services
- Authentication
BankingSystem/BankingSystem.Business/Implementations/AuthService.cs - Auth requests
BankingSystem/BankingSystem.Business/DTOs/AuthDTOs/UserRegisterDto.cs - Account services
BankingSystem/BankingSystem.Business/Implementations/AccountService.cs - Card services
BankingSystem/BankingSystem.Business/Implementations/CardService.cs - Card encryption
BankingSystem/BankingSystem.Business/ExternalServices/Implementations/CardEncryptionService.cs - Transaction services
BankingSystem/BankingSystem.Business/Implementations/TransactionService.cs - User services
BankingSystem/BankingSystem.Business/Implementations/UserService.cs
Banking domain
- User identity
BankingSystem/BankingSystem.Core/Models/AppUser.cs - Accounts
BankingSystem/BankingSystem.Core/Models/Account.cs - Cards
BankingSystem/BankingSystem.Core/Models/Card.cs - Transactions
BankingSystem/BankingSystem.Core/Models/Transaction.cs
Persistence
- Account repository
BankingSystem/BankingSystem.Data/Repositories/AccountRepository.cs - Card repository
BankingSystem/BankingSystem.Data/Repositories/CardRepository.cs - Transaction repository
BankingSystem/BankingSystem.Data/Repositories/TransactionRepository.cs - Generic repository
BankingSystem/BankingSystem.Data/Repositories/GenericRepository.cs - EF context
BankingSystem/BankingSystem.Data/AppDbContext.cs
Other components
- Customer
- PostgreSQL
Connections 16
- Customer → API host: requests
- API host → EF context: configures
BankingSystem/BankingSystem.API/Program.cs - Authentication → Auth requests: accepts
BankingSystem/BankingSystem.Business/Implementations/AuthService.cs - Authentication → User identity: manages identity
BankingSystem/BankingSystem.Business/Implementations/AuthService.cs - Account services → Accounts: manages
BankingSystem/BankingSystem.Business/Implementations/AccountService.cs - Account services → Account repository: queries and saves
BankingSystem/BankingSystem.Business/Implementations/AccountService.cs - Card services → Cards: manages
BankingSystem/BankingSystem.Business/Implementations/CardService.cs - Card services → Card repository: queries and saves
BankingSystem/BankingSystem.Business/Implementations/CardService.cs - Card services → Card encryption: uses
BankingSystem/BankingSystem.Business/Implementations/CardService.cs - Transaction services → Transactions: manages
- Transaction services → Transaction repository: uses
- Account repository → Generic repository: extends
BankingSystem/BankingSystem.Data/Repositories/AccountRepository.cs - Card repository → Generic repository: extends
BankingSystem/BankingSystem.Data/Repositories/CardRepository.cs - Transaction repository → Generic repository: extends
BankingSystem/BankingSystem.Data/Repositories/TransactionRepository.cs - Generic repository → EF context: reads and writes
BankingSystem/BankingSystem.Data/Repositories/GenericRepository.cs - EF context → PostgreSQL: connects