How pulengtshaba/training-management-solution works
This is a monolithic ASP.NET Core API whose demonstrated workflows are employee management and account authentication. Employee requests pass through a controller, service, repository, EF Core context, and SQL Server; authentication checks credentials and issues a token. The README describes broader training, attendance, notification, and reporting capabilities, but the supplied tree and source index show no distinct implementation for them, so they are not expanded into runtime components. The employee and authentication paths are evidenced in excerpts; wiring is supported by the Program.cs source-index references.
Main entry points: Program.cs API host · AuthService.cs Auth service · ApplicationDbContext.cs EF Core context · EmployeeController.cs Employee controller
Components 15
API and composition
- API host
TrainingManagement.Api/Program.cs - Employee controller
TrainingManagement.Api/Controllers/EmployeeController.cs - Auth controller
TrainingManagement.Api/Controllers/AuthController.cs
Employee management
- Employee service
TrainingManagement.Api/Services/EmployeeService.cs - Employee DTOs
TrainingManagement.Api/DTOs - Paged results
TrainingManagement.Api/Common/PagedResult.cs - Employee model
TrainingManagement.Api/Models/Employee.cs
Authentication
- Auth service
TrainingManagement.Api/Services/AuthService.cs - Auth DTOs
TrainingManagement.Api/DTOs - User model
TrainingManagement.Api/Models/User.cs - Token service
TrainingManagement.Api/Services/TokenService.cs
Persistence
- Employee repository
TrainingManagement.Api/Repositories/EmployeeRepository.cs - EF Core context
TrainingManagement.Api/Data/ApplicationDbContext.cs
Other components
- API client
- SQL Server
Connections 21
- API client → API host: sends requests
README.md - API host → Employee controller: routes requests
- API host → Auth controller: routes requests
- Employee controller → Employee service: calls
TrainingManagement.Api/Controllers/EmployeeController.cs - Employee controller → Employee DTOs: accepts and returns
TrainingManagement.Api/Controllers/EmployeeController.cs - Employee controller → Paged results: returns paged data
TrainingManagement.Api/Controllers/EmployeeController.cs - Employee service → Employee repository: queries and saves
TrainingManagement.Api/Services/EmployeeService.cs - Employee service → Employee model: maps entities
TrainingManagement.Api/Services/EmployeeService.cs - Employee repository → EF Core context: queries and changes
TrainingManagement.Api/Repositories/EmployeeRepository.cs - EF Core context → Employee model: maps entity
TrainingManagement.Api/Data/ApplicationDbContext.cs - EF Core context → User model: maps entity
TrainingManagement.Api/Data/ApplicationDbContext.cs - EF Core context → SQL Server: persists data
- Auth controller → Auth service: delegates auth
- Auth controller → Auth DTOs: accepts and returns
TrainingManagement.Api/Controllers/AuthController.cs - Auth service → EF Core context: reads and saves users
TrainingManagement.Api/Services/AuthService.cs - Auth service → User model: checks credentials
TrainingManagement.Api/Services/AuthService.cs - Auth service → Token service: creates token
TrainingManagement.Api/Services/AuthService.cs - API host → Employee service: registers services
TrainingManagement.Api/Program.cs - API host → Employee repository: registers repository
TrainingManagement.Api/Program.cs - API host → Auth service: registers service
TrainingManagement.Api/Program.cs - API host → Token service: registers service
TrainingManagement.Api/Program.cs