How omar2282005/academyhub works
AcademyHub is an ASP.NET Core MVC course-management app. Visitors browse courses and details; signed-in users create courses and owners can edit or delete them, with server-side validation and enrollment-aware deletion. The graph shows the documented Identity account flow and the sampled controller-to-repository-to-training-data path. README capabilities are included where implementation files were not sampled; those links are dashed where wiring is unverified.
Main entry points: CourseController.cs Course actions · Program.cs MVC routing · TrainingDbContext.cs Training data context · CourseRepository .cs Course repository
Components 21
Web experience
- MVC routing
AcademyHub/Program.cs - Home pages
AcademyHub/Controllers/HomeController.cs - Catalog and forms
AcademyHub/Views/Course - Home and shared views
AcademyHub/Views - Browser catalog search
AcademyHub/wwwroot/js/site.js
Course workflows
- Course actions
AcademyHub/Controllers/CourseController.cs - Course ViewModels
AcademyHub/ViewModel - Entity mapping
AcademyHub/Mapping/MappingProfile.cs - Course repository contract
AcademyHub/Repositories/Interface/ICourseRepository.cs - Course repository
AcademyHub/Repositories/Implementation/CourseRepository .cs
Training domain
- Courses and instructors
AcademyHub/Models/Course.cs - Students and enrollments
AcademyHub/Models/Enrollment.cs - Instructor profiles
AcademyHub/Models/InstructorProfile.cs - Training data context
AcademyHub/Data/TrainingDbContext.cs - Training database
Accounts and storage
- Application user
AcademyHub/Identity/ApplicationUser.cs - Identity data context
AcademyHub/Data/IdentityAppDbContext.cs - Identity database
- Identity account UI
Other components
- Visitor
- Signed-in member
Connections 25
- Visitor → MVC routing: requests pages
README.md - Signed-in member → MVC routing: requests changes
README.md - MVC routing → Course actions: routes courses
AcademyHub/Program.cs - MVC routing → Home pages: routes home
AcademyHub/Program.cs - MVC routing → Identity account UI: maps account pages
AcademyHub/Program.cs - Course actions → Course repository contract: calls
AcademyHub/Controllers/CourseController.cs - Course actions → Entity mapping: maps models
AcademyHub/Controllers/CourseController.cs - Course actions → Course ViewModels: binds and returns
AcademyHub/Controllers/CourseController.cs - Course actions → Catalog and forms: returns views
AcademyHub/Controllers/CourseController.cs - Home pages → Home and shared views: returns views
AcademyHub/Controllers/HomeController.cs - Catalog and forms → Browser catalog search: searches loaded rows
README.md - Course repository → Course repository contract: implements
AcademyHub/Repositories/Implementation/CourseRepository .cs - Course actions → Application user: gets current user
AcademyHub/Controllers/CourseController.cs - Course actions → Course repository: dispatches data calls
- Course repository → Training data context: queries and saves
AcademyHub/Repositories/Implementation/CourseRepository .cs - Training data context → Training database: persists training data
README.md - Identity data context → Identity database: persists accounts
README.md - Identity account UI → Application user: manages accounts
README.md - Application user → Identity data context: stored through
AcademyHub/Data/IdentityAppDbContext.cs - Training data context → Courses and instructors: models courses
AcademyHub/Data/TrainingDbContext.cs - Training data context → Students and enrollments: models enrollments
AcademyHub/Data/TrainingDbContext.cs - Training data context → Instructor profiles: models profiles
AcademyHub/Data/TrainingDbContext.cs - Courses and instructors → Students and enrollments: owns enrollments
AcademyHub/Models/Course.cs - Courses and instructors → Instructor profiles: links instructor profile
- MVC routing → Course ViewModels: validates forms
README.md