How hyu-2005/quanlychothuexe_uneti02_ti17a2hn works
This is an ASP.NET Core car-rental management application. Customers search available vehicles and create rental bookings; staff manage booking approval, vehicle handover and return, payments, fleet/catalog data, accounts, and reporting. The sampled availability service checks vehicle status, booking overlaps, and effective rental prices; booking, payment, and reporting controllers/services use the shared EF Core context. The graph preserves the documented-by-tree rental stages, but their implementation links are limited where controller source was not sampled; no README was provided.
Main entry points: AppDbContext.cs Rental database · XeTrongService.cs Availability search · Constants Domain statuses · DatXeController.cs Booking workflow
Components 19
Rental lifecycle
- Booking workflow
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/DatXeController.cs - Availability search
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/XeTrongService.cs - Schedule conflicts
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/TrungLichService.cs - Vehicle handover
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/BanGiaoXeController.cs - Vehicle return
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/TraXeController.cs - Payments
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/ThanhToanController.cs
Fleet and pricing
- Fleet catalog
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/XeController.cs - Vehicle makes
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/HangXeController.cs - Vehicle types
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/LoaiXeController.cs - Rental rates
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/BangGiaThueController.cs
Operations
- Accounts and sessions
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/TaiKhoanController.cs - Customer records
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/KhachHangController.cs - Statistics and reports
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/ThongKeService.cs
Application foundation
- Rental domain records
QuanLyChoThueXe_UNETI02_TI17A2HN/Models/Entities - Domain statuses
QuanLyChoThueXe_UNETI02_TI17A2HN/Models/Constants - Rental database
QuanLyChoThueXe_UNETI02_TI17A2HN/Data/AppDbContext.cs - Service startup
QuanLyChoThueXe_UNETI02_TI17A2HN/Program.cs
Other components
- Customer
- Staff
Connections 26
- Customer → Booking workflow: submits bookings
- Customer → Availability search: searches vehicles
- Staff → Vehicle handover: records handover
- Staff → Vehicle return: records return
- Staff → Payments: handles payments
- Staff → Fleet catalog: manages fleet
- Booking workflow → Rental database: reads and writes
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/DatXeController.cs - Booking workflow → Availability search: queries availability
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/DatXeController.cs - Booking workflow → Schedule conflicts: checks conflicts
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/DatXeController.cs - Availability search → Rental database: queries fleet and bookings
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/XeTrongService.cs - Availability search → Domain statuses: filters statuses
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/XeTrongService.cs - Schedule conflicts → Rental database: checks bookings
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/TrungLichService.cs - Schedule conflicts → Domain statuses: filters statuses
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/TrungLichService.cs - Payments → Rental database: reads and writes
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/ThanhToanController.cs - Payments → Rental domain records: uses rental records
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/ThanhToanController.cs - Payments → Domain statuses: uses role and status values
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/ThanhToanController.cs - Fleet catalog → Rental database: reads and writes
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/XeController.cs - Vehicle types → Rental database: reads and writes
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/LoaiXeController.cs - Rental rates → Rental database: reads and writes
QuanLyChoThueXe_UNETI02_TI17A2HN/Controllers/BangGiaThueController.cs - Statistics and reports → Rental database: aggregates rental data
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/ThongKeService.cs - Statistics and reports → Domain statuses: groups by status
QuanLyChoThueXe_UNETI02_TI17A2HN/Services/Implementations/ThongKeService.cs - Rental database → Rental domain records: maps entities
QuanLyChoThueXe_UNETI02_TI17A2HN/Data/AppDbContext.cs - Service startup → Rental database: configures context
QuanLyChoThueXe_UNETI02_TI17A2HN/Program.cs - Service startup → Availability search: registers service
QuanLyChoThueXe_UNETI02_TI17A2HN/Program.cs - Service startup → Schedule conflicts: registers service
QuanLyChoThueXe_UNETI02_TI17A2HN/Program.cs - Rental domain records → Domain statuses: booking uses status constants
QuanLyChoThueXe_UNETI02_TI17A2HN/Models/Entities/DatXe.cs