Patterns in This Project Pattern Where Purpose Repository Pattern ICategoryRepository / CategoryRepository, ISubCategoryRepository / SubCategoryRepository Abstracts data access; allows swapping EF Core ↔ ADO.NET without changing upper layers Service Layer Pattern ICategoryService / CategoryService, ISubCategoryService / SubCategoryService Contains business logic; maps between Entities and DTOs Dependency Injection Constructor injection in all layers via Program.cs registrations Loose coupling; testability via mocking interfaces DTO Pattern CategoryDto, CreateCategoryRequest, UpdateCategoryRequest Separates API contract from internal entities; prevents over-posting Interface Segregation All layers depend on interfaces (ICategoryService, ICategoryRepository) Enables unit testing with…