# lcnguyn23/e-learning architecture

> Architecture diagram of the GitHub repository lcnguyn23/e-learning, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lcnguyn23/e-learning
- Repository: https://github.com/lcnguyn23/e-learning

## Overview

This is an ASP.NET e-learning application for students, instructors, and administrators. Instructors create and organize courses; students discover courses and access enrolled learning content, while administrators manage courses and users. The sampled controller and service references support the course-authoring and enrollment/learning flow. The tree also shows identity, discussions, payments, ratings, and progress capabilities, but their runtime wiring is not sampled; those are represented without guessed connections.

Main entry points: [`ELearning.Business/Services/Implementations/CourseService.cs`](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/CourseService.cs) (Course services), [`ELearning.Web/Areas/Instructor/Controllers/CourseController.cs`](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Instructor/Controllers/CourseController.cs) (Course authoring), [`ELearning.Web/Areas/Student/Controllers/MyCourseController.cs`](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Student/Controllers/MyCourseController.cs) (Student learning), [`ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs`](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs) (Admin management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflows"]
  node_course_authoring["Course authoring"]
  node_student_learning["Student learning"]
  node_catalog["Course discovery<br/>[HomeController.cs]"]
  node_admin_manage["Admin management"]
  node_identity_ui["Account access"]
end

subgraph group_business["Business services"]
  node_course_service["Course services<br/>[CourseService.cs]"]
  node_user_service["User services<br/>[UserService.cs]"]
  node_course_requests["Course requests"]
  node_lesson_services["Lesson services<br/>[LessonService.cs]"]
  node_section_services["Section services<br/>[SectionService.cs]"]
end

subgraph group_learning["Learning domain"]
  node_course_data["Course catalog<br/>[Course.cs]"]
  node_course_request_data["Course requests<br/>[CourseRequest.cs]"]
  node_lesson_data["Lessons and media<br/>[Lesson.cs]"]
  node_enrollment["Enrollment and progress<br/>[Enrollment.cs]"]
  node_community["Discussion and ratings<br/>[Discussion.cs]"]
  node_payments["Payments and refunds<br/>[Payment.cs]"]
end

subgraph group_platform["Identity and persistence"]
  node_identity["User identity<br/>[ApplicationUser.cs]"]
  node_repositories["Data repositories<br/>[Repository.cs]"]
  node_enrollment_repository["Enrollment repository"]
  node_database[("Application database")]
end

node_instructor(("Instructor"))
node_student(("Student"))
node_admin(("Administrator"))

node_instructor -->|"authors courses"| node_course_authoring
node_course_authoring -->|"loads instructor"| node_user_service
node_course_authoring -->|"manages courses"| node_course_service
node_course_authoring -->|"manages sections"| node_section_services
node_course_authoring -->|"manages lessons"| node_lesson_services
node_student -->|"browses courses"| node_catalog
node_student -->|"studies courses"| node_student_learning
node_student_learning -->|"loads courses"| node_course_service
node_student_learning -->|"loads lessons"| node_lesson_services
node_student_learning -->|"checks enrollment"| node_enrollment_repository
node_admin -->|"manages platform"| node_admin_manage
node_admin_manage -->|"manages courses"| node_course_service
node_admin_manage -->|"reviews requests"| node_course_requests
node_admin_manage -->|"manages lessons"| node_lesson_services
node_course_service -->|"maps course data"| node_course_data
node_course_service -->|"uses repositories"| node_repositories
node_course_service -->|"gets instructor data"| node_user_service
node_course_service -->|"uses request service"| node_course_requests
node_enrollment_repository -->|"queries context"| node_database
node_identity_ui -.->|"authenticates users"| node_identity
node_course_requests -.->|"handles requests"| node_course_request_data
node_lesson_services -.->|"handles lesson content"| node_lesson_data

click node_course_authoring "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Instructor/Controllers/CourseController.cs"
click node_student_learning "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Student/Controllers/MyCourseController.cs"
click node_catalog "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Controllers/HomeController.cs"
click node_admin_manage "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs"
click node_identity_ui "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Controllers/AccountController.cs"
click node_course_service "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/CourseService.cs"
click node_user_service "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/UserService.cs"
click node_course_requests "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/CourseRequestService.cs"
click node_lesson_services "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/LessonService.cs"
click node_section_services "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/SectionService.cs"
click node_course_data "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/CourseManagement/Course.cs"
click node_course_request_data "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/CourseManagement/CourseRequest.cs"
click node_lesson_data "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/CourseContent/Lesson.cs"
click node_enrollment "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/EnrollmentManagement/Enrollment.cs"
click node_community "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/DiscussionManagement/Discussion.cs"
click node_payments "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/PaymentRefund/Payment.cs"
click node_identity "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/User/ApplicationUser.cs"
click node_repositories "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Data/Repositories/Implementations/Repository.cs"
click node_enrollment_repository "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Data/Repositories/Implementations/EnrollmentRepository.cs"
click node_database "https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Data/ELearningDbContext.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_course_authoring,node_student_learning,node_catalog,node_admin_manage,node_identity_ui toneBlue
class node_course_service,node_user_service,node_course_requests,node_lesson_services,node_section_services toneAmber
class node_course_data,node_course_request_data,node_lesson_data,node_enrollment,node_community,node_payments toneMint
class node_identity,node_repositories,node_enrollment_repository,node_database toneRose
class node_instructor,node_student,node_admin toneIndigo
```

## Components

### Web workflows

- [Course authoring](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Instructor/Controllers/CourseController.cs): `ELearning.Web/Areas/Instructor/Controllers/CourseController.cs`
- [Student learning](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Student/Controllers/MyCourseController.cs): `ELearning.Web/Areas/Student/Controllers/MyCourseController.cs`
- [Course discovery](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Controllers/HomeController.cs): `ELearning.Web/Controllers/HomeController.cs`
- [Admin management](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs): `ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs`
- [Account access](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Web/Controllers/AccountController.cs): `ELearning.Web/Controllers/AccountController.cs`

### Business services

- [Course services](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/CourseService.cs): `ELearning.Business/Services/Implementations/CourseService.cs`
- [User services](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/UserService.cs): `ELearning.Business/Services/Implementations/UserService.cs`
- [Course requests](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/CourseRequestService.cs): `ELearning.Business/Services/Implementations/CourseRequestService.cs`
- [Lesson services](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/LessonService.cs): `ELearning.Business/Services/Implementations/LessonService.cs`
- [Section services](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Business/Services/Implementations/SectionService.cs): `ELearning.Business/Services/Implementations/SectionService.cs`

### Learning domain

- [Course catalog](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/CourseManagement/Course.cs): `ELearning.DomainModels/CourseManagement/Course.cs`
- [Course requests](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/CourseManagement/CourseRequest.cs): `ELearning.DomainModels/CourseManagement/CourseRequest.cs`
- [Lessons and media](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/CourseContent/Lesson.cs): `ELearning.DomainModels/CourseContent/Lesson.cs`
- [Enrollment and progress](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/EnrollmentManagement/Enrollment.cs): `ELearning.DomainModels/EnrollmentManagement/Enrollment.cs`
- [Discussion and ratings](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/DiscussionManagement/Discussion.cs): `ELearning.DomainModels/DiscussionManagement/Discussion.cs`
- [Payments and refunds](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/PaymentRefund/Payment.cs): `ELearning.DomainModels/PaymentRefund/Payment.cs`

### Identity and persistence

- [User identity](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.DomainModels/User/ApplicationUser.cs): `ELearning.DomainModels/User/ApplicationUser.cs`
- [Data repositories](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Data/Repositories/Implementations/Repository.cs): `ELearning.Data/Repositories/Implementations/Repository.cs`
- [Enrollment repository](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Data/Repositories/Implementations/EnrollmentRepository.cs): `ELearning.Data/Repositories/Implementations/EnrollmentRepository.cs`
- [Application database](https://github.com/lcnguyn23/e-learning/blob/master/ELearning.Data/ELearningDbContext.cs): `ELearning.Data/ELearningDbContext.cs`

### Other components

- **Instructor**
- **Student**
- **Administrator**

## Connections

- Instructor → Course authoring: authors courses
- Course authoring → User services: loads instructor (evidence: `ELearning.Web/Areas/Instructor/Controllers/CourseController.cs`)
- Course authoring → Course services: manages courses (evidence: `ELearning.Web/Areas/Instructor/Controllers/CourseController.cs`)
- Course authoring → Section services: manages sections (evidence: `ELearning.Web/Areas/Instructor/Controllers/CourseController.cs`)
- Course authoring → Lesson services: manages lessons (evidence: `ELearning.Web/Areas/Instructor/Controllers/CourseController.cs`)
- Student → Course discovery: browses courses
- Student → Student learning: studies courses
- Student learning → Course services: loads courses (evidence: `ELearning.Web/Areas/Student/Controllers/MyCourseController.cs`)
- Student learning → Lesson services: loads lessons (evidence: `ELearning.Web/Areas/Student/Controllers/MyCourseController.cs`)
- Student learning → Enrollment repository: checks enrollment (evidence: `ELearning.Web/Areas/Student/Controllers/MyCourseController.cs`)
- Administrator → Admin management: manages platform
- Admin management → Course services: manages courses (evidence: `ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs`)
- Admin management → Course requests: reviews requests (evidence: `ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs`)
- Admin management → Lesson services: manages lessons (evidence: `ELearning.Web/Areas/Admin/Controllers/CourseManageController.cs`)
- Course services → Course catalog: maps course data (evidence: `ELearning.Business/Services/Implementations/CourseService.cs`)
- Course services → Data repositories: uses repositories (evidence: `ELearning.Business/Services/Implementations/CourseService.cs`)
- Course services → User services: gets instructor data (evidence: `ELearning.Business/Services/Implementations/CourseService.cs`)
- Course services → Course requests: uses request service (evidence: `ELearning.Business/Services/Implementations/CourseService.cs`)
- Enrollment repository → Application database: queries context (evidence: `ELearning.Data/Repositories/Implementations/EnrollmentRepository.cs`)
- Account access → User identity: authenticates users (evidence: `ELearning.Web/Controllers/AccountController.cs`)
- Course requests → Course requests: handles requests (evidence: `ELearning.Business/Services/Implementations/CourseRequestService.cs`)
- Lesson services → Lessons and media: handles lesson content (evidence: `ELearning.Business/Services/Implementations/LessonService.cs`)
