Build a CRUD App with Vertical Slice Architecture in .NET 9 šŸš€


Hey Reader,

If you’ve ever built a simple CRUD app with a layered architecture… you might be making things harder than they need to be.

In my newest YouTube tutorial, I show you how to build a scalable CRUD app using something super clean and refreshing:

šŸ‘‰ Vertical Slice Architecture in .NET 9​

video preview​

We’ll build a full Video Game API, step-by-step, with:

  • .NET 9 Web API + Entity Framework Core
  • Code-first migrations
  • Controllers (yep, still using those!)
  • The Mediator pattern for cleaner code
  • And, of course, the full CRUD (Create, Read, Update, Delete)

No more bloated services or endless layers. With vertical slices, each feature lives in one place. Super organized. Super focused.

Oh, and the source code is completely free to download. Just check the link in the video description.

This has been one of my favorite architectural styles lately. If you’re curious how it compares to Clean Architecture or want a simpler setup for smaller apps, this is for you.

Let me know what you think in the comments!

And feel free to hit reply if you have questions 😊

Take care & happy coding,

Patrick

P.S. Want to go deeper into real-world .NET and Blazor projects? Join me inside the .NET Web Academy. There’s a whole community waiting for you. Check it out here.


Patrick God

Become a .NET & Blazor expert with weekly tutorials featuring best practices and the latest improvements, right in your inbox.

Read more from Patrick God

Hey Reader, Last week, I tested GPT-5 Agent Mode on .NET and Blazor apps, and the results were surprising. This week, I went a step further. I used GitHub Copilot inside Visual Studio and asked it to create real .NET and Blazor projects for me. Here’s what happened: Copilot generated a working calculator app in C#. It built a Web API that responded with ā€œHello GPT-5 Agents.ā€ It even created a Blazor app with extra features like a reset button, a plus five counter, and a weather API. Were...

video preview

Hey Reader, I just published a new video where I put GPT-5’s Agent Mode to the test. šŸš€ Instead of asking it for something simple, I went all in: A .NET 9 console app calculator A Web API with endpoints and docs A Blazor Server app with extra counter buttons And even a Blazor app that calls a public weather API šŸŽ„ Watch it now: In the video, I didn’t just type ā€œmake me an appā€ and hope for the best. I gave GPT-5 very specific prompts, like: ā€œPlease create a .NET 9 console application that works...

Hey Reader, I’m back! šŸŽ‰ I’ve been on parental leave for the past 2 months, enjoying time with the family. Now I’m diving back into videos and here’s the first one! šŸŽ„ Watch it now: Here’s the TL;DR if you can’t click right now: AI can already write code, fix bugs, and explain complex concepts. So… are we doomed? No. AI isn’t replacing developers anytime soon. But: Developers who use AI will replace those who don’t. The best devs are using GPT to: Skip repetitive work Prototype faster Learn...