Posts

Showing posts from 2025

Create clean architecture with ASP.NET Core API

  Create clean architecture with ASP.NET Core API Here’s a high-level overview of a clean architecture API setup: /MyApp ├ ── /API                 → Presentation layer (Controllers) ├ ── /Application         → Business logic (use cases, DTOs, interfaces) ├ ── /Domain              → Core models and business rules ├ ── /Infrastructure      → Data access, external services └── /Persistence         → EF Core repositories and DB context 👉 Step-by-Step Setu p : 1.       Create Solution & Project : (use command in terminal for create Solution and project) 👇 dotnet new sln -n MyApp dotnet new webapi -n MyApp.API dotnet new classlib -n MyApp.Application dotnet new classlib -n MyApp.Domain dotnet new classlib -n MyApp.In...