ASP.NET Core MVC with /api/-area
Part of my ASP.NET Core recipe series: carving out an /api/-area in an MVC project so pages and API endpoints live cleanly side by side.
3 articles in the notebook
Part of my ASP.NET Core recipe series: carving out an /api/-area in an MVC project so pages and API endpoints live cleanly side by side.
The opening recipe in my ASP.NET Core series: setting up a clean MVC project as the foundation the rest of the recipes build on.
The default MVC folder layout scatters one feature across Controllers, Views and Scripts. As the project grows, grouping by feature instead keeps related files together — here is how to bend ASP.Net MVC to that layout.