How poseidonsamu-ux/ihomefurniture works
iHomeFurniture is an ASP.NET MVC furniture storefront with customer accounts, product browsing, cart checkout, and administrative management. The principal customer flow is catalog browsing, adding products to a session cart, then submitting an order that creates order and line-item records. Separate branches cover account verification, news, and AI product advice. The tree identifies additional brand and home controllers, but their behavior is not sampled; their wiring is therefore not shown.
Main entry points: IHomeModel.Context.cs Entity Framework · CartController.cs Cart and Checkout · ProductController.cs Product Catalog · AccountController.cs Account and OTP
Components 18
Storefront
- Product Catalog
IHomeFurniture/Controllers/ProductController.cs - Cart and Checkout
IHomeFurniture/Controllers/CartController.cs - Cart Session
Accounts
- Account and OTP
IHomeFurniture/Controllers/AccountController.cs - Customer Profile
IHomeFurniture/Controllers/UserAccountController.cs
Store Operations
- Admin Management
IHomeFurniture/Controllers/AdminController.cs - Order Status
IHomeFurniture/Controllers/OrderStatusController.cs - Brand Routes
IHomeFurniture/Controllers/BrandController.cs
Content and Advice
- News Management
IHomeFurniture/Controllers/NewsController.cs - AI Shopping Chat
IHomeFurniture/Controllers/ChatBoxAIController.cs
Persistence
- Entity Framework
IHomeFurniture/Models/IHomeModel.Context.cs - Store Database
IHomeFurniture/Models/IHomeModel.Designer.cs - Order Entities
IHomeFurniture/Models/DONDATHANG.cs - Product Entity
IHomeFurniture/Models/SANPHAM.cs
Other components
- Shopper
- Administrator
- SMTP Email
- Gemini API
Connections 27
- Shopper → Product Catalog: browses
- Product Catalog → Entity Framework: queries products
- Product Catalog → Entity Framework: updates views
- Entity Framework → Store Database: reads and writes
- Shopper → Cart and Checkout: manages cart
- Cart and Checkout → Cart Session: stores cart
- Cart and Checkout → Entity Framework: loads products
- Cart and Checkout → Entity Framework: creates order
- Entity Framework → Store Database: reads and writes
- Cart and Checkout → Order Entities: persists order
- Shopper → Account and OTP: registers or signs in
- Account and OTP → Entity Framework: reads and updates customers
- Account and OTP → SMTP Email: sends OTP
- Shopper → Customer Profile: manages profile
- Customer Profile → Entity Framework: reads and updates profile
- Customer Profile → Entity Framework: loads orders
- Administrator → Admin Management: manages store
- Admin Management → Entity Framework: manages records
- Administrator → Order Status: maintains statuses
- Order Status → Entity Framework: manages statuses
- Administrator → News Management: manages news
- Shopper → News Management: reads news
- News Management → Entity Framework: reads and writes news
- Shopper → AI Shopping Chat: asks for advice
- AI Shopping Chat → Entity Framework: loads products
- AI Shopping Chat → Gemini API: requests response
- Entity Framework → Store Database: reads and writes