A Cleaner Way to Build .NET Web APIs (No Controllers Needed!) 🤯


Hey Reader,

In my last video, I showed you how to build a CRUD app using Vertical Slice Architecture and controllers in .NET 9.

But… What if you could do the same thing - cleaner, simpler, and without all that controller clutter?

👉 That’s exactly what I show you in my brand-new video:

video preview

In this one, you’ll learn how to:

  • Use Minimal APIs instead of controllers
  • Keep your Program.cs neat and tidy
  • Stay fully organized with the Vertical Slice Architecture
  • Work with Carter, a super helpful library for modular endpoints
  • Still use CQRS + MediatR (but only if you want to)

It’s simple, modern, and super clean.

And yep, the complete source code is free to download (link’s in the video description).

If you're tired of bloated code or just want to try a different architecture style that actually scales, this is a must-watch.

And if you missed the first part (with the controller version), you can check that one out, too. 👇

video preview

Together, both give you a full picture.

Let me know what you think in the comments. I’d love to hear what you're building!

Take care & happy coding,

Patrick

P.S. Want to go further with real-world .NET & Blazor projects? Join me inside the .NET Web Academy and level up your dev skills with the community. 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...