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 Reader, .NET 10 is almost here, and it brings a big upgrade for validation in Minimal APIs. In this week’s tutorial, I’ll walk you through how validation works now in .NET 10 (using Entity Framework, Scalar, and Minimal APIs). Before, writing validation logic in each endpoint was a pain. You had to manually check for null values, invalid quantities, or missing fields. But in .NET 10, that’s all built-in and super clean. Watch the full tutorial now: 👇 Happy coding! Take care, Patrick

video preview

Hey Reader, If you’ve been coding for a while, you’ve probably asked yourself this too: “Am I getting better… or just older?” I’ve been writing software for fifteen years now, and that question still sneaks up on me. But looking back, I’ve realized something: real growth in tech isn’t about frameworks or chasing trends. It’s about staying curious, patient, and keeping your spark alive when everything feels heavy. So I made a new video about it, my 15 biggest lessons from 15 years of coding....

video preview

Hey Reader, If you’re a Blazor developer, you know that annoying flash when your app loads data during pre-rendering. It’s been around forever. Sure, you could disable pre-rendering, but then you'd hurt performance and SEO. Well… with .NET 10, we finally have a real fix: the new Persistent State Attribute. 🎉 🎥 Watch my full tutorial about it here: In this video, I walk you through: ✅ What causes the flashing issue ✅ Why disabling pre-rendering isn’t ideal ✅ How the new Persistent State...