How gveluchamy/ics2 works
ICSLockers is an ASP.NET locker-management application with role-based accounts and administration of locations, divisions, lockers, users, and guardian records. The main workflow is account login or registration, followed by staff/admin actions to manage locker inventory and review dashboard or user-report data. Controllers coordinate repositories and direct database operations; repositories and Identity handle account and administrative operations over the EF context. The tree also shows staff and reporting browser scripts, but their server-side wiring is not established by the sampled excerpts.
Main entry points: AdminController.cs Admin endpoints · ApplicationDbContext.cs EF and Identity store · AdminRepository.cs Admin operations · AccountManager.cs Account and Identity
Components 25
Accounts and access
- Account endpoints
ICSLockers/Controllers/AccountController.cs - Account contract
ICSLockers/Repository/IRepository/IAccountManager.cs - Account and Identity
ICSLockers/Repository/AccountManager.cs - Password helper
ICSLockers/Helpers/AccountHelper.cs - Home endpoints
ICSLockers/Controllers/HomeController.cs
Locker administration
- Admin endpoints
ICSLockers/Controllers/AdminController.cs - Admin contract
ICSLockers/Repository/IRepository/IAdminRepository.cs - Admin operations
ICSLockers/Repository/AdminRepository.cs - Staff endpoints
ICSLockers/Controllers/StaffController.cs
Data and domain
- EF and Identity store
ICSLockers/Data/ApplicationDbContext.cs - Account model
ICSLockers/Models/ApplicationUser.cs - Location model
ICSLockers/Models/LocationModel.cs - Division model
ICSLockers/Models/DivisionModel.cs - Locker model
ICSLockers/Models/LockerUnitModel.cs - Guardian model
ICSLockers/Models/GuardianModel.cs - User event model
ICSLockers/Models/UserEvent.cs - Dashboard model
ICSLockers/Models/AdminDashboard.cs - Report model
ICSLockers/Models/UserReportsModel.cs - Login input
ICSLockers/Models/LoginViewModel.cs - Registration input
ICSLockers/Models/RegistrationModel.cs
Browser features
- Admin browser UI
ICSLockers/wwwroot/js/Admin.js - Staff browser UI
ICSLockers/wwwroot/js/Staff.js - Reports browser UI
ICSLockers/wwwroot/js/UserReports.js - Account browser UI
ICSLockers/wwwroot/js/Account.js
Other components
- User
Connections 31
- User → Account endpoints: submits account actions
ICSLockers/Controllers/AccountController.cs - Account endpoints → Account contract: calls
ICSLockers/Controllers/AccountController.cs - Account and Identity → Account contract: implements
ICSLockers/Repository/AccountManager.cs - Account and Identity → Password helper: creates password
ICSLockers/Repository/AccountManager.cs - Account and Identity → EF and Identity store: records events
ICSLockers/Repository/AccountManager.cs - Account and Identity → Account model: uses
ICSLockers/Repository/AccountManager.cs - Account and Identity → Login input: accepts
ICSLockers/Repository/AccountManager.cs - Account and Identity → Registration input: accepts
ICSLockers/Repository/AccountManager.cs - Admin endpoints → Admin contract: calls
ICSLockers/Controllers/AdminController.cs - Admin operations → Admin contract: implements
ICSLockers/Repository/AdminRepository.cs - Admin endpoints → EF and Identity store: queries and updates
ICSLockers/Controllers/AdminController.cs - Admin operations → EF and Identity store: queries and updates
ICSLockers/Repository/AdminRepository.cs - Admin operations → Location model: manages
ICSLockers/Repository/AdminRepository.cs - Admin operations → Division model: manages
ICSLockers/Repository/AdminRepository.cs - Admin operations → Locker model: manages
ICSLockers/Repository/AdminRepository.cs - Admin operations → Dashboard model: builds
ICSLockers/Repository/AdminRepository.cs - Admin operations → Report model: builds
ICSLockers/Repository/AdminRepository.cs - Admin operations → User event model: reads
ICSLockers/Repository/AdminRepository.cs - Admin endpoints → Guardian model: saves
ICSLockers/Controllers/AdminController.cs - Admin endpoints → Location model: uses
ICSLockers/Controllers/AdminController.cs - Admin endpoints → Division model: uses
ICSLockers/Controllers/AdminController.cs - Admin endpoints → Locker model: uses
ICSLockers/Controllers/AdminController.cs - Admin endpoints → Report model: uses
ICSLockers/Controllers/AdminController.cs - Admin endpoints → User event model: uses
ICSLockers/Controllers/AdminController.cs - Admin endpoints → Account model: queries
ICSLockers/Controllers/AdminController.cs - EF and Identity store → Account model: maps
ICSLockers/Data/ApplicationDbContext.cs - EF and Identity store → Location model: maps
ICSLockers/Data/ApplicationDbContext.cs - EF and Identity store → Division model: maps
ICSLockers/Data/ApplicationDbContext.cs - EF and Identity store → Locker model: maps
ICSLockers/Data/ApplicationDbContext.cs - EF and Identity store → User event model: maps
ICSLockers/Data/ApplicationDbContext.cs - EF and Identity store → Guardian model: maps
ICSLockers/Data/ApplicationDbContext.cs