How dj28p/betsolutions works
BetSolutions is an ASP.NET Core MVC administration app for managing users, betting accounts, transactions, and World Cup-style bets. Its principal workflow runs from a browser request through a controller to an application service, which applies business rules and reads or writes through the EF Core context to SQL Server; the controller then returns the result. The graph preserves the documented search and bet-settlement capabilities. Some links rely on the README’s architecture description because the corresponding implementation excerpts were not provided.
Main entry points: IApplicationDbContext.cs Persistence contract · UsersController.cs User endpoints · AccountsController.cs Account endpoints · TransactionsController.cs Transaction endpoints
Components 16
Web interface
- User endpoints
src/BetSolutions.Web/Controllers/UsersController.cs - Account endpoints
src/BetSolutions.Web/Controllers/AccountsController.cs - Transaction endpoints
src/BetSolutions.Web/Controllers/TransactionsController.cs - Bet endpoints
src/BetSolutions.Web/Controllers/BetsController.cs - Contact endpoint
src/BetSolutions.Web/Controllers/ContactController.cs
Application services
- User management
src/BetSolutions.Application/Services/UserService.cs - Account management
src/BetSolutions.Application/Services/AccountService.cs - Transaction management
src/BetSolutions.Application/Services/TransactionService.cs - Bet placement
src/BetSolutions.Application/Services/BettingService.cs - World Cup odds
src/BetSolutions.Application/Services/WorldCupOddsCatalog.cs
Data access
- User search
src/BetSolutions.Infrastructure/Services/UserSearchService.cs - EF Core context
src/BetSolutions.Infrastructure/Data/ApplicationDbContext.cs - SQL database
Domain contracts
- Domain entities
src/BetSolutions.Core/Entities/BettingAccount.cs - Persistence contract
src/BetSolutions.Application/Interfaces/IApplicationDbContext.cs
Other components
- Browser
Connections 21
- Browser → User endpoints: sends requests
README.md - Browser → Account endpoints: sends requests
README.md - Browser → Transaction endpoints: sends requests
README.md - Browser → Bet endpoints: sends requests
README.md - Browser → Contact endpoint: sends requests
- User endpoints → User management: calls
src/BetSolutions.Web/Controllers/UsersController.cs - User endpoints → User search: calls
src/BetSolutions.Web/Controllers/UsersController.cs - Account endpoints → Account management: calls
src/BetSolutions.Web/Controllers/AccountsController.cs - Account endpoints → User management: calls
src/BetSolutions.Web/Controllers/AccountsController.cs - Transaction endpoints → Account management: calls
src/BetSolutions.Web/Controllers/TransactionsController.cs - Transaction endpoints → Transaction management: calls
src/BetSolutions.Web/Controllers/TransactionsController.cs - Bet endpoints → Bet placement: calls
src/BetSolutions.Web/Controllers/BetsController.cs - User management → Persistence contract: queries and saves
src/BetSolutions.Application/Services/UserService.cs - Account management → Persistence contract: queries and saves
src/BetSolutions.Application/Services/AccountService.cs - Transaction management → Persistence contract: queries and saves
src/BetSolutions.Application/Services/TransactionService.cs - Bet placement → Persistence contract: queries and saves
src/BetSolutions.Application/Services/BettingService.cs - Bet placement → World Cup odds: uses odds
src/BetSolutions.Application/Services/BettingService.cs - User search → Persistence contract: queries
src/BetSolutions.Infrastructure/Services/UserSearchService.cs - EF Core context → Persistence contract: implements
src/BetSolutions.Infrastructure/Data/ApplicationDbContext.cs - Persistence contract → Domain entities: exposes sets
src/BetSolutions.Application/Interfaces/IApplicationDbContext.cs - EF Core context → SQL database: reads and writes
README.md