How akocer/internet-1 works
Internet-1 is an ASP.NET Core MVC sample for browsing and maintaining products. A user reaches the default Home page or product actions; ProductController validates submitted products, delegates CRUD operations to ProductRepository, and returns MVC views. ProductRepository stores records in a static in-memory list, not a database. The graph reflects the sampled controllers, repository, and models; view links follow MVC action/view conventions. The README documents no additional capabilities, and unsampled view and client-side wiring is not inferred.
Main entry points: ProductRepository.cs Product repository · ProductController.cs Product actions · Program.cs ASP.NET app · HomeController.cs Home actions
Components 11
Web application
- ASP.NET app
Internet-1/Program.cs - Home actions
Internet-1/Controllers/HomeController.cs - Error model
Internet-1/Models/ErrorViewModel.cs
Product catalog
- Product actions
Internet-1/Controllers/ProductController.cs - Product model
Internet-1/Models/Product.cs - Product repository
Internet-1/Repositories/ProductRepository.cs - Static product list
Internet-1/Repositories/ProductRepository.cs
MVC views
- Home views
Internet-1/Views/Home - Product views
Internet-1/Views/Product - Shared layout
Internet-1/Views/Shared
Other components
- Visitor
Connections 10
- Visitor → ASP.NET app: sends requests
- ASP.NET app → Home actions: routes default
Internet-1/Program.cs - ASP.NET app → Product repository: registers service
Internet-1/Program.cs - Home actions → Error model: creates model
Internet-1/Controllers/HomeController.cs - Home actions → Home views: returns views
Internet-1/Controllers/HomeController.cs - Product actions → Product repository: calls CRUD
Internet-1/Controllers/ProductController.cs - Product actions → Product model: accepts model
Internet-1/Controllers/ProductController.cs - Product repository → Product model: creates records
Internet-1/Repositories/ProductRepository.cs - Product repository → Static product list: reads and writes
Internet-1/Repositories/ProductRepository.cs - Product actions → Product views: returns views
Internet-1/Controllers/ProductController.cs