How manard19/lms works
DalilAcademy is a learning-management API for authentication, course and student management, enrollments, and payments. The clearest sampled workflow is enrollment: the service checks student and course records, checks capacity, creates a pending or paid enrollment, then returns a DTO; the repository persists it. The tree also shows course images, currency, and PayPal payment components, but their runtime links were not sampled. Edges are limited to calls and persistence visible in the excerpts; other likely API wiring is omitted rather than inferred.
Main entry points: EnrollmentService.cs Enrollment rules · AuthService.cs Authentication · EnrollmentRepository.cs Enrollment repository · EnrollmentResponseDto.cs Enrollment DTOs
Components 26
API boundary
- API host
LMS-Project/DalilAcademy.API/Program.cs - Course endpoints
LMS-Project/DalilAcademy.API/Controllers/CoursesController.cs - Student endpoints
LMS-Project/DalilAcademy.API/Controllers/StudentsController.cs - Enrollment endpoints
LMS-Project/DalilAcademy.API/Controllers/EnrollmentsController.cs - Auth endpoints
LMS-Project/DalilAcademy.API/Controllers/AuthController.cs - Exception mapping
LMS-Project/DalilAcademy.API/Middleware/GlobalExceptionHandler.cs
Learning domain
- Course management
LMS-Project/DalilAcademy.Infra/Service/CourseService.cs - Student management
LMS-Project/DalilAcademy.Infra/Service/StudentService.cs - Enrollment rules
LMS-Project/DalilAcademy.Infra/Service/EnrollmentService.cs - Payment processing
LMS-Project/DalilAcademy.Infra/Service/PaymentService.cs - Currency conversion
LMS-Project/DalilAcademy.Infra/Service/CurrencyService.cs - Course model
LMS-Project/DalilAcademy.Core/Entities/Course.cs - Student model
LMS-Project/DalilAcademy.Core/Entities/Student.cs - Enrollment model
LMS-Project/DalilAcademy.Core/Entities/Enrollment.cs - Enrollment DTOs
LMS-Project/DalilAcademy.Core/DTOs/Enrollments/EnrollmentResponseDto.cs
Identity and access
- Authentication
LMS-Project/DalilAcademy.Infra/Service/AuthService.cs - User model
LMS-Project/DalilAcademy.Core/Entities/Users.cs - JWT tokens
LMS-Project/DalilAcademy.Infra/Security/JwtTokenService.cs
Infrastructure
- Course repository
LMS-Project/DalilAcademy.Infra/Repository/EfCourseRepository.cs - Student repository
LMS-Project/DalilAcademy.Infra/Repository/StudentRepository.cs - Enrollment repository
LMS-Project/DalilAcademy.Infra/Repository/EnrollmentRepository.cs - User repository
LMS-Project/DalilAcademy.Infra/Repository/UserRepositroy.cs - Payment repository
LMS-Project/DalilAcademy.Infra/Repository/PaymentRepository.cs - EF data context
LMS-Project/DalilAcademy.Infra/Data/AppDbContext.cs - Image storage
LMS-Project/DalilAcademy.Infra/Storage/ImgService.cs - PayPal gateway
LMS-Project/DalilAcademy.Infra/Service/PayPalPaymentGateway.cs
Connections 8
- Enrollment rules → Student repository: loads student
LMS-Project/DalilAcademy.Infra/Service/EnrollmentService.cs - Enrollment rules → Course repository: loads course
LMS-Project/DalilAcademy.Infra/Service/EnrollmentService.cs - Enrollment rules → Enrollment repository: checks and writes
LMS-Project/DalilAcademy.Infra/Service/EnrollmentService.cs - Enrollment rules → Enrollment DTOs: maps result
LMS-Project/DalilAcademy.Infra/Service/EnrollmentService.cs - Enrollment repository → EF data context: queries and saves
LMS-Project/DalilAcademy.Infra/Repository/EnrollmentRepository.cs - Authentication → User repository: looks up user
LMS-Project/DalilAcademy.Infra/Service/AuthService.cs - Authentication → JWT tokens: generates token
LMS-Project/DalilAcademy.Infra/Service/AuthService.cs - Authentication → User model: authenticates user
LMS-Project/DalilAcademy.Infra/Service/AuthService.cs