I would like to reorganize structure of MVC Core project so that, instead of horizontal layers (Models, Controllers, Views) I have vertical "slices" : each feature is contained inside one folder which contains everything related to that feature.
Example of this structure might look like this:
/Features/Home/Model.cs
/Features/Home/Controller.cs
/Features/Home/Index.cshtml
In older projects, I achieved this by writing custom controller factory.
Questions:
Is custom controller factory best way to achieve this in ASP.NET MVC Core?
If so, is there an example how to write and inject custom controller factory in ASP.NET MVC Core?