How mary-raafat/gymmanagementsystemmvc works
This is a role-aware ASP.NET Core MVC gym operations system. Admins manage accounts and member/trainer profiles, plans and memberships, then create training sessions and manage bookings and attendance; members can self-register. Business services apply domain rules through a unit of work to EF Core persistence, while image uploads use a separate storage service. The README documents additional lifecycle, authorization, auditing, seeding, and image-security capabilities; unsampled subsystem links are shown only as unverified where their exact calls are not excerpted.
Main entry points: GymContext.cs EF Core context · MemberController.cs Member management · SessionService.cs Session workflows · ImageService.cs Image storage
Components 34
MVC presentation
- Account endpoints
GymManagementSystem/Controllers/AccountController.cs - Member management
GymManagementSystem/Controllers/MemberController.cs - Trainer management
GymManagementSystem/Controllers/TrainerController.cs - Plan management
GymManagementSystem/Controllers/PlansController.cs - Membership management
GymManagementSystem/Controllers/MembershipController.cs - Session management
GymManagementSystem/Controllers/SessionController.cs - Bookings and attendance
GymManagementSystem/Controllers/SessionScheduleController.cs - Image endpoint
GymManagementSystem/Controllers/ImageController.cs
Business workflows
- Account workflows
GymManagementSystem.BLL/Services/AccountService.cs - Member and health
GymManagementSystem.BLL/Services/MemberService.cs - Trainer workflows
GymManagementSystem.BLL/Services/TrainerService.cs - Plan workflows
GymManagementSystem.BLL/Services/PlanService.cs - Membership lifecycle
GymManagementSystem.BLL/Services/MembershipService.cs - Session workflows
GymManagementSystem.BLL/Services/SessionService.cs - Scheduling and booking
GymManagementSystem.BLL/Services/SessionScheduleService.cs - Result validation
GymManagementSystem.BLL/Common/Result.cs
Image infrastructure
- Image storage
Infrastructure/ImageService.cs - Image files
Persistence and domain
- Unit of work
GymManagementSystem.DAL/Interfaces/IUnitOfWork.cs - Repositories
GymManagementSystem.DAL/Repositories - EF Core context
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - SQL Server
- Identity accounts
GymManagementSystem.DAL/Identity/AppUser.cs - Member profile
GymManagementSystem.DAL/Models/Member.cs - Trainer profile
GymManagementSystem.DAL/Models/Trainer.cs - Session
GymManagementSystem.DAL/Models/Session.cs - Booking
GymManagementSystem.DAL/Models/Booking.cs - Membership
GymManagementSystem.DAL/Models/Membership.cs - Membership plan
GymManagementSystem.DAL/Models/Plan.cs - Health record
GymManagementSystem.DAL/Models/HealthRecord.cs - Audit and soft delete
GymManagementSystem.DAL/Interceptors/AuditColumnsInterceptor.cs - Startup seeding
GymManagementSystem.DAL/DataSeeding/DataSeeder.cs
Other components
- Gym admin
- Member
Connections 30
- Member → Account endpoints: registers
GymManagementSystem/Controllers/AccountController.cs - Gym admin → Member management: manages
- Gym admin → Trainer management: manages
- Gym admin → Plan management: manages
- Gym admin → Membership management: manages
- Gym admin → Session management: manages
- Gym admin → Bookings and attendance: books and tracks
- Account endpoints → Account workflows: calls
GymManagementSystem/Controllers/AccountController.cs - Member management → Member and health: calls
GymManagementSystem/Controllers/MemberController.cs - Session management → Session workflows: calls
GymManagementSystem/Controllers/SessionController.cs - Member management → Image storage: uploads through
- Image endpoint → Image storage: serves images
- Image storage → Image files: reads and writes
Infrastructure/ImageService.cs - Session workflows → Unit of work: queries and saves
GymManagementSystem.BLL/Services/SessionService.cs - Scheduling and booking → Unit of work: books and updates
GymManagementSystem.BLL/Services/SessionScheduleService.cs - Session workflows → Result validation: returns validation
GymManagementSystem.BLL/Services/SessionService.cs - Scheduling and booking → Result validation: returns validation
GymManagementSystem.BLL/Services/SessionScheduleService.cs - Unit of work → Repositories: exposes
- Repositories → EF Core context: queries and persists
GymManagementSystem.DAL/Repositories/MemberRepository.cs - EF Core context → SQL Server: persists data
- EF Core context → Identity accounts: maps accounts
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Member profile: maps profiles
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Trainer profile: maps profiles
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Session: maps sessions
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Booking: maps bookings
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Membership: maps memberships
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Membership plan: maps plans
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Health record: maps records
GymManagementSystem.DAL/Dbcontexts/GymContext.cs - EF Core context → Audit and soft delete: uses interceptor
- Startup seeding → EF Core context: seeds data