How uttamd2029/productcarlzeiss works
Main Components
A. API Layer
• AuthController (Authentication/Authorization)
• ProductController (Product Management)
• Custom Action Filters for validation
B. Business/Service Layer
• DTOs (Data Transfer Objects)
• AutoMapper Profiles for object mapping
• Repository interfaces and implementations
C. Data Layer
• Two separate database contexts:
• ProductDbContext (for product data)
• ProductZeissAuthDBContext (for authentication)
• Domain Models
• Migrations
D. Cross-Cutting Concerns
• Authentication/Authorization
• Model validation
• Token management
┌─────────────────────────────────────────┐
• Client Layer │
• ┘
• ↓
┌─────────────────────────────────────────┐
• API Layer │
• ┌─────────────┐ ┌──────────────┐ │
• Auth │ │ Product │ │
• Controller │ │ Controller │ │
• ┘ └──────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Business Layer │
• ┌─────────────┐ ┌──────────────┐ │
• Token │ │ Product │ │
• Repository │ │ Repository │ │
• ┘ └──────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Data Layer │
• ┌─────────────┐ ┌──────────────┐ │
• Auth │ │ Product │ │
• Database │ │ Database │ │
• ┘ └──────────────┘ │
• ┘
Important Elements to Highlight
a. Authentication Flow:
• Login/Register endpoints
• Token generation and validation
• Security middleware
b. Product Management Flow:
• CRUD operations
• Data validation
• Repository pattern implementation
c. Data Access:
• Separate database contexts
• Entity relationships
• Migration management
Technical Stack Indicators
• ASP.NET Core 8.0
• Entity Framework Core
• AutoMapper
• JWT Authentication (implied by TokenRepository)
• SQL Server (implied by context naming)