How salmakhalill/team-1-iti works
This ASP.NET Core MVC inventory system supports catalog maintenance, stock monitoring and reordering, purchase and sale transactions, dashboard analytics, and an AI assistant that answers from policy documents or live business data. The primary workflow is a user request routed to an MVC controller, handled through a service or database context, and returned as a page or AI response. The graph includes the documented capability branches, but several controller and AI integrations are unsampled; their connections are shown only where the excerpts, source index, or README support them.
Main entry points: InventoryManagementDbContext.cs Business database · AIService.cs AI orchestration · RAGService.cs Policy retrieval · InventoryService.cs Inventory service
Components 21
Catalog management
- Products
Controllers/ProductController.cs - Categories
Controllers/CategoriesController.cs - Category service
Services/CategoryService.cs - Suppliers
Controllers/SuppliersController.cs - Supplier service
Services/SupplierService.cs
Stock and transactions
- Purchases
Controllers/PurchasesController.cs - Purchase service
Services/PurchaseService.cs - Sales
Controllers/SalesController.cs - Sale service
Services/SaleService.cs - Stock board
Controllers/InventoryController.cs - Inventory service
Services/InventoryService.cs - Business database
Data/InventoryManagementDbContext.cs
Dashboard and alerts
- Dashboard
Controllers/DashboardController.cs - Low-stock alert
ViewComponents/ViewComponentLowStockAlertViewComponent.cs
AI assistant
- AI endpoint
Controllers/AIController.cs - AI orchestration
Services/AI/AIService.cs - Policy retrieval
Services/AI/RAGService.cs - Embedding service
Services/AI/EmbeddingService.cs - Operations policy PDF
Other components
- User
- OpenRouter
Connections 26
- User → Products: manages products
- User → Categories: manages categories
- User → Suppliers: manages suppliers
- Products → Business database: queries and saves
Controllers/ProductController.cs - Categories → Category service: delegates to
Controllers/CategoriesController.cs - Category service → Business database: reads and writes
Services/CategoryService.cs - Suppliers → Supplier service: delegates to
Controllers/SuppliersController.cs - Supplier service → Business database: reads and writes
Services/SupplierService.cs - User → Purchases: records purchase
- Purchases → Purchase service: delegates to
Controllers/PurchasesController.cs - Purchase service → Business database: adds stock
Services/PurchaseService.cs - User → Sales: records sale
- Sale service → Business database: deducts stock
Services/SaleService.cs - User → Stock board: views stock
- Inventory service → Business database: queries stock
Services/InventoryService.cs - User → Dashboard: views analytics
- Dashboard → Business database: queries metrics
Controllers/DashboardController.cs - Low-stock alert → Inventory service: gets low stock
ViewComponents/ViewComponentLowStockAlertViewComponent.cs - User → AI endpoint: asks question
- AI endpoint → AI orchestration: dispatches question
- AI orchestration → Policy retrieval: retrieves policy
Services/AI/AIService.cs - AI orchestration → Inventory service: calls live-data tools
Services/AI/AIService.cs - Policy retrieval → Embedding service: creates embeddings
Services/AI/RAGService.cs - Policy retrieval → Operations policy PDF: reads and chunks
Services/AI/RAGService.cs - Embedding service → OpenRouter: requests embeddings
Services/AI/EmbeddingService.cs - AI orchestration → OpenRouter: requests completions