Make Your ASP.NET Core API Controllers Incredibly Simple

Published: 28 February 2023
on channel: Milan Jovanović
23,736
747

☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code:   / milanjovanovic  

Having thin controllers in an ASP.NET Core API is a good practice. It helps to keep any logic away from your ASP.NET Core controllers, increasing maintainability and simplifying your endpoint. I'll show you an interesting approach to making your ASP.NET Core API controllers incredibly simple with a few functional programming concepts.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
   / @milanjovanovictech  

Chapters
0:00 Benefits of "Thin" Controllers
1:34 Rewriting the controller endpoint
2:24 Defining the Bind function
4:19 Defining the Match function
7:05 Fluent controller endpoints


Watch video Make Your ASP.NET Core API Controllers Incredibly Simple online, duration hours minute second in high quality that is uploaded to the channel Milan Jovanović 28 February 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 23,736 times and liked it 747 visitors.