How artemian21/advertising_agency works
Project type and purpose
• This is a layered .NET Web API application (“Advertising_Agency”) that exposes REST endpoints for order management, user authentication, discounts, and service listings.
• It follows a Clean/Onion-style architecture with distinct Domain, DataAccess (EF Core), BusinessLogic, WebAPI, and Test projects.
File structure
• Top-level projects:
• Advertising_Agency.Domain: DTOs and enums
• Advertising_Agency.DataAccess: EF Core DbContext, configurations, migrations, repository and UnitOfWork implementations
• Advertising_Agency.BusinessLogic: service interfaces and implementations (Auth, Discount, Order, OrderItem, Service, User, password hashing)
• Advertising_Agency.WebAPI: ASP.NET Core controllers and startup configuration
• Advertising_Agency.Tests: unit tests targeting BusinessLogic services
• Patterns & tech:
• Repository + Unit of Work for data access
• Dependency-injection for services/repositories
• Entity Framework Core for ORM
• DTO mapping (AutoMapper profile in DataAccess)
• Bcrypt for password hashing, JWT or token-based AuthService
README
• Minimal content (“# Advertising_Agency”), so rely primarily on code structure and conventions.