How ebubekiryzc/recapproject works
Main Architectural Components
a) Presentation Layer:
• WebAPI (REST API endpoints)
• ConsoleUI (Development/Testing interface)
b) Business Layer:
• Business Logic
• Validation Rules
• Authentication/Authorization
• Cross-cutting Concerns
c) Data Access Layer:
• Entity Framework Implementation
• In-Memory Repository Implementation
d) Core Layer:
• Base Classes and Interfaces
• Utilities
• Cross-cutting Concerns
• Security Infrastructure
Component Relationships
a) Top Level (Client Interaction):
• REST API Controllers (WebAPI)
• Authentication Controller
• Resource Controllers (Cars, Rentals, etc.)
b) Business Services Layer:
• Service Interfaces (ICarService, IRentalService, etc.)
• Concrete Managers (CarManager, RentalManager, etc.)
• Business Rules
• Validation Rules
c) Data Access Layer:
• Repository Interfaces (ICarDal, IRentalDal, etc.)
• Entity Framework Implementations
• In-Memory Implementations
• Database Context
d) Cross-cutting Concerns:
• Caching
• Validation
• Authentication/Authorization
• Exception Handling
• Transaction Management
Specific Elements
a) Components:
• Controllers (Purple rectangles)
• Business Services (Blue rectangles)
• Data Access Repositories (Green rectangles)
• Entities (Yellow rectangles)
• Cross-cutting Concerns (Orange hexagons)
b) Connections:
Important Architectural Patterns to Highlight
• Repository Pattern (data access layer)
• Factory Pattern (for creating instances)
• Aspect-Oriented Programming (cross-cutting concerns)
Key Technologies
• .NET Core
• Entity Framework Core
• Autofac (IoC Container)
• JWT Authentication
• FluentValidation
• Memory Cache
Additional Details
Specialized components:
• File Operations (CarImage handling)
• Payment Processing
• Credit Card Management
• Customer Management
Notes Section
Notes explaining:
• Security implementation
• Caching strategy
• Transaction management
• Error handling approach
Remember to emphasize the N-Layer architecture pattern and how each layer communicates only with adjacent layers through well-defined interfaces.