How saikiran155/techcart works
Techcart is an ASP.NET Core MVC storefront with product browsing and administration, account/role management, a cart, and order checkout. The main customer workflow is browsing products, adding items to a cart, then creating an order and viewing payment success; the excerpts show these actions but no external payment provider. The graph includes the shared EF Core store and principal domain models. Source excerpts do not establish every view binding or runtime configuration detail, so those relationships are omitted where not directly visible.
Main entry points: AppIdentityDbContext.cs Application database · Program.cs App startup · OrderController.cs Order checkout · HomeController.cs Catalog home
Components 16
Web entry and setup
- App startup
WebApplication2/Program.cs - Error view data
WebApplication2/Models/ErrorViewModel.cs
Accounts and access
- Account actions
WebApplication2/Controllers/AccountController.cs - Registration input
WebApplication2/Models/RegisterViewModel.cs - Login input
WebApplication2/Models/LoginViewModel.cs
Storefront and checkout
- Catalog home
WebApplication2/Controllers/HomeController.cs - Product management
WebApplication2/Controllers/ProductController.cs - Cart actions
WebApplication2/Controllers/CartController.cs - Order checkout
WebApplication2/Controllers/OrderController.cs
Domain and persistence
- Product entity
WebApplication2/Models/Product.cs - Cart entity
WebApplication2/Models/Cart.cs - Order entity
WebApplication2/Models/Order.cs - Order line entity
WebApplication2/Models/OrderItem.cs - Application database
WebApplication2/Data/AppIdentityDbContext.cs
Other components
- Shopper or admin
- SQL Server
Connections 22
- Shopper or admin → App startup: requests pages
WebApplication2/Program.cs - App startup → Catalog home: routes requests
WebApplication2/Program.cs - App startup → Application database: configures context
WebApplication2/Program.cs - App startup → SQL Server: uses connection
WebApplication2/Program.cs - App startup → Account actions: sets login route
WebApplication2/Program.cs - Catalog home → Application database: reads products
WebApplication2/Controllers/HomeController.cs - Catalog home → Product entity: filters products
WebApplication2/Controllers/HomeController.cs - Catalog home → Error view data: creates error data
WebApplication2/Controllers/HomeController.cs - Product management → Application database: manages products
WebApplication2/Controllers/ProductController.cs - Product management → Product entity: creates and updates
WebApplication2/Controllers/ProductController.cs - Cart actions → Application database: reads and writes
WebApplication2/Controllers/CartController.cs - Cart actions → Cart entity: updates cart items
WebApplication2/Controllers/CartController.cs - Order checkout → Application database: saves order data
WebApplication2/Controllers/OrderController.cs - Order checkout → Cart entity: reads and clears cart
WebApplication2/Controllers/OrderController.cs - Order checkout → Order entity: creates and retrieves
WebApplication2/Controllers/OrderController.cs - Order checkout → Order line entity: creates order lines
WebApplication2/Controllers/OrderController.cs - Account actions → Registration input: accepts registration
WebApplication2/Controllers/AccountController.cs - Account actions → Login input: accepts credentials
WebApplication2/Controllers/AccountController.cs - Order entity → Order line entity: contains lines
WebApplication2/Models/Order.cs - Application database → Product entity: stores products
WebApplication2/Data/AppIdentityDbContext.cs - Application database → Cart entity: stores carts
WebApplication2/Data/AppIdentityDbContext.cs - Application database → Order entity: stores orders
WebApplication2/Data/AppIdentityDbContext.cs