How mahdiebrahimidev/inventorymanagement works
InventoryManagement is an ASP.NET inventory-management API. Users and administrators manage accounts and roles, catalog products and suppliers, warehouses, and stock transactions. The principal operational flow is a stock-transaction request routed through the API to application logic that updates warehouse stock and records the transaction. Product and account workflows are also represented. The README is empty; unsampled capabilities are included at directory level, and links without source evidence are omitted.
Main entry points: CategoryRepository.cs Category repository · ProductRepository.cs Product repository · AppDbContext.cs Application database · ProductService.cs Product service
Components 26
API
- Account endpoints
InventoryManagement.Api/Controllers/AccountController.cs - Catalog endpoints
InventoryManagement.Api/Controllers/ProductController.cs - Category endpoints
InventoryManagement.Api/Controllers/CategoryController.cs - Supplier endpoints
InventoryManagement.Api/Controllers/SupplierController.cs - Stock transactions
InventoryManagement.Api/Controllers/StockTransactionController.cs - Warehouse endpoints
InventoryManagement.Api/Controllers/WarehouseController.cs - Warehouse stock endpoints
InventoryManagement.Api/Controllers/WarehouseStockController.cs - Unit endpoints
InventoryManagement.Api/Controllers/UnitController.cs
Application services
- Category service
InventoryManagement.Application/Services/CategoryService.cs - Product service
InventoryManagement.Application/Services/ProductService.cs - Stock transaction service
InventoryManagement.Application/Services/StockTransactionService.cs - Supplier service
InventoryManagement.Application/Services/SupplierService.cs - Warehouse service
InventoryManagement.Application/Services/WareHouseServices.cs - Warehouse stock service
InventoryManagement.Application/Services/WarehouseStockService.cs - Unit service
InventoryManagement.Application/Services/UnitService.cs
Identity
- Account service
InventoryManagement.Infrastructure/Identity/AccountService.cs
Persistence and domain
- Inventory entities and enums
InventoryManagement.Core/Entities - Repository contracts
InventoryManagement.Core/Interfaces - Product repository
InventoryManagement.Infrastructure/Repositories/ProductRepository.cs - Category repository
InventoryManagement.Infrastructure/Repositories/CategoryRepository.cs - Generic repository
InventoryManagement.Infrastructure/Repositories/GenericRepository.cs - Warehouse stock repository
InventoryManagement.Infrastructure/Repositories/WarehouseStockRepository.cs - Application database
InventoryManagement.Infrastructure/Context/AppDbContext.cs - Other repositories
InventoryManagement.Infrastructure/Repositories
Other components
- API client
- ASP.NET Identity
Connections 29
- API client → Account endpoints: requests
- API client → Catalog endpoints: requests
- API client → Category endpoints: requests
- API client → Supplier endpoints: requests
- API client → Stock transactions: requests
- API client → Warehouse endpoints: requests
- API client → Warehouse stock endpoints: requests
- API client → Unit endpoints: requests
- Category endpoints → Category service: calls
InventoryManagement.Api/Controllers/CategoryController.cs - Stock transactions → Stock transaction service: calls
InventoryManagement.Api/Controllers/StockTransactionController.cs - Supplier endpoints → Supplier service: calls
InventoryManagement.Api/Controllers/SupplierController.cs - Warehouse endpoints → Warehouse service: calls
InventoryManagement.Api/Controllers/WarehouseController.cs - Account endpoints → Account service: calls
InventoryManagement.Api/Controllers/AccountController.cs - Account service → ASP.NET Identity: manages accounts
InventoryManagement.Infrastructure/Identity/AccountService.cs - Product service → Product repository: calls
InventoryManagement.Application/Services/ProductService.cs - Product service → Category repository: validates category
InventoryManagement.Application/Services/ProductService.cs - Product service → Other repositories: validates units and suppliers
InventoryManagement.Application/Services/ProductService.cs - Stock transaction service → Other repositories: uses stock and transaction repositories
InventoryManagement.Application/Services/StockTransactionService.cs - Category service → Category repository: uses
InventoryManagement.Application/Services/CategoryService.cs - Product repository → Generic repository: inherits
InventoryManagement.Infrastructure/Repositories/ProductRepository.cs - Category repository → Generic repository: uses
InventoryManagement.Infrastructure/Repositories/CategoryRepository.cs - Warehouse stock repository → Generic repository: uses
InventoryManagement.Infrastructure/Repositories/WarehouseStockRepository.cs - Product repository → Application database: queries
InventoryManagement.Infrastructure/Repositories/ProductRepository.cs - Category repository → Application database: queries
InventoryManagement.Infrastructure/Repositories/CategoryRepository.cs - Warehouse stock repository → Application database: queries
InventoryManagement.Infrastructure/Repositories/WarehouseStockRepository.cs - Application database → Inventory entities and enums: maps entities
InventoryManagement.Infrastructure/Context/AppDbContext.cs - Product repository → Repository contracts: implements
InventoryManagement.Infrastructure/Repositories/ProductRepository.cs - Category repository → Repository contracts: implements
InventoryManagement.Infrastructure/Repositories/CategoryRepository.cs - Account endpoints → Account service: uses interface
InventoryManagement.Api/Controllers/AccountController.cs