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
video preview

Hey friend, I just published a new video that walks you through how to upgrade to .NET 10. Watch it here 👇 If you're already trying the update, you may have seen this: the app builds no errors but… Blazor doesn't load That happened in my project too. And the fix is small, but easy to miss. In the video, I show: how to update the target frameworks how to update NuGet packages what changed for Blazor and how to fix the missing static assets issue No hype. Just a clear step-by-step walkthrough....

video preview

Hey friend, I just released a new video that shows how to add AI to a .NET app. Watch it here 👇 In the video, I take a simple .NET project and make it smart with AI. The app can generate item backstories with one click. Like magic. No big setup. No overthinking. Just .NET, Copilot, and the OpenAI API working together. If you’ve ever wondered: How do I call the OpenAI API from a .NET app? Can Copilot help with real features? How do I make my app do more than CRUD? This will help. Give it a...

video preview

Hey friend, Last week I wrote a full .NET 10 Web API by hand. It worked great. But I kept thinking… Can I build the same thing faster with AI? So I tried. And wow. The result blew my mind. In my new YouTube video, I show you the exact workflow I used with GitHub Copilot to build a full API. Step by step. Real code. No fluff. If you ever thought things like: “How do I use Copilot in real .NET apps?” “Is Copilot even helpful for Web API, EF Core, or real projects?” “Am I using this tool the...