How sarahtariqbutt/carrentalapp works
This is a small ASP.NET Core MVC car-rental app. A visitor opens the car listing, submits a booking, and sees the booked-car list; the controller moves cars between in-memory lists. Home and privacy pages are separate MVC actions. No README or persistence implementation was provided, so the graph shows only the evidenced in-memory workflow and MVC routing, not a database or payment system.
Main entry points: Program.cs MVC host and routing · CarsController.cs Car actions and state · HomeController.cs Home and privacy actions · Car.cs Car model
Components 7
Web runtime
- MVC host and routing
Program.cs
Car rental
- Car actions and state
Controllers/CarsController.cs - Car model
Models/Car.cs - Listing and booking views
Views/Cars
Home pages
- Home and privacy actions
Controllers/HomeController.cs - Error view model
Models/ErrorViewModel.cs
Other components
- Visitor
Connections 6
- Visitor → MVC host and routing: sends requests
Program.cs - MVC host and routing → Car actions and state: routes MVC
Program.cs - Car actions and state → Car model: creates and uses
Controllers/CarsController.cs - Car actions and state → Listing and booking views: returns views
Controllers/CarsController.cs - MVC host and routing → Home and privacy actions: routes MVC
Program.cs - Home and privacy actions → Error view model: creates error model
Controllers/HomeController.cs