How fcakiroglu16/aspnetcore-mvc-course works
This repository contains two ASP.NET Core MVC teaching applications. The main app’s core workflow is an HTTP request routed to a controller, which validates/maps product or visitor input, reads or writes through EF Core, and returns a view or redirect; filters add cross-cutting behavior. The second app isolates IP-whitelist middleware. The README documents additional category, cookie, AJAX, configuration, session, and Razor capabilities, but their detailed wiring is not established by the sampled source. Dashed links mark those documentation-level or unverified integrations.
Main entry points: Program.cs MVC request pipeline · AppDbContext.cs EF context · ProductsController.cs Product actions · HomeController.cs Home actions
Components 25
Main MVC app
- MVC request pipeline
MyAspNetCoreApp.Web/Program.cs - Home actions
MyAspNetCoreApp.Web/Controllers/HomeController.cs - Visitor AJAX
MyAspNetCoreApp.Web/Controllers/VisitorAjaxController.cs - Cookie actions
MyAspNetCoreApp.Web/Controllers/CookieController.cs - App settings
MyAspNetCoreApp.Web/Controllers/AppSettingController.cs
Catalog and data
- Product actions
MyAspNetCoreApp.Web/Controllers/ProductsController.cs - Category actions
MyAspNetCoreApp.Web/Controllers/CategoriesController.cs - EF context
MyAspNetCoreApp.Web/Models/AppDbContext.cs - SQL Server
- Product entity
MyAspNetCoreApp.Web/Models/Product.cs - Category entity
MyAspNetCoreApp.Web/Models/Category.cs - Visitor entity
MyAspNetCoreApp.Web/Models/Visitor.cs - Product view models
MyAspNetCoreApp.Web/ViewModels/ProductViewModel.cs - Product update model
MyAspNetCoreApp.Web/ViewModels/ProductUpdateViewModel.cs - Visitor view model
MyAspNetCoreApp.Web/ViewModels/VisitorViewModel.cs - View-model mapping
MyAspNetCoreApp.Web/Mapping/ViewModelMapping.cs - Category management
MyAspNetCoreApp.Web/Controllers/CategoriesController.cs
Filters and services
- Missing-item filter
MyAspNetCoreApp.Web/Filters/NotFoundFilter.cs - MVC filters
MyAspNetCoreApp.Web/Filters - Helper service
MyAspNetCoreApp.Web/Helpers/Helper.cs
Middleware sample
- Middleware pipeline
MiddlewareExample.Web/Program.cs - IP whitelist
MiddlewareExample.Web/Middlewares/WhiteIpAddressControlMiddleware.cs - Sample home actions
MiddlewareExample.Web/Controllers/HomeController.cs
Other components
- HTTP user
- HTTP client
Connections 29
- HTTP user → MVC request pipeline: sends request
MyAspNetCoreApp.Web/Program.cs - MVC request pipeline → Home actions: routes to
MyAspNetCoreApp.Web/Program.cs - MVC request pipeline → Product actions: routes to
MyAspNetCoreApp.Web/Program.cs - MVC request pipeline → Category actions: routes to
README.md - MVC request pipeline → Cookie actions: routes to
README.md - MVC request pipeline → App settings: routes to
README.md - Home actions → EF context: queries
MyAspNetCoreApp.Web/Controllers/HomeController.cs - Home actions → Visitor entity: creates
MyAspNetCoreApp.Web/Controllers/HomeController.cs - Home actions → Visitor view model: maps input
MyAspNetCoreApp.Web/Controllers/HomeController.cs - Home actions → MVC filters: uses filters
MyAspNetCoreApp.Web/Controllers/HomeController.cs - Product actions → EF context: reads and writes
MyAspNetCoreApp.Web/Controllers/ProductsController.cs - Product actions → Product view models: binds and returns
MyAspNetCoreApp.Web/Controllers/ProductsController.cs - Product actions → Product update model: binds and returns
MyAspNetCoreApp.Web/Controllers/ProductsController.cs - Product actions → View-model mapping: maps entities
MyAspNetCoreApp.Web/Controllers/ProductsController.cs - Product actions → Missing-item filter: applies filter
MyAspNetCoreApp.Web/Controllers/ProductsController.cs - Category actions → EF context: reads and writes
MyAspNetCoreApp.Web/Controllers/CategoriesController.cs - Visitor AJAX → EF context: reads and writes
MyAspNetCoreApp.Web/Controllers/VisitorAjaxController.cs - Visitor AJAX → Visitor view model: uses model
MyAspNetCoreApp.Web/Controllers/VisitorAjaxController.cs - EF context → Product entity: stores
MyAspNetCoreApp.Web/Models/AppDbContext.cs - EF context → Category entity: stores
MyAspNetCoreApp.Web/Models/AppDbContext.cs - EF context → Visitor entity: stores
MyAspNetCoreApp.Web/Models/AppDbContext.cs - EF context → SQL Server: persists via EF
- MVC request pipeline → EF context: configures
MyAspNetCoreApp.Web/Program.cs - MVC request pipeline → Helper service: registers service
MyAspNetCoreApp.Web/Program.cs - MVC request pipeline → Missing-item filter: registers filter
MyAspNetCoreApp.Web/Program.cs - HTTP user → Middleware pipeline: sends request
MiddlewareExample.Web/Program.cs - Middleware pipeline → IP whitelist: registers middleware
MiddlewareExample.Web/Program.cs - Middleware pipeline → Sample home actions: routes to
README.md - HTTP client → Middleware pipeline: sends request
MiddlewareExample.Web/Program.cs