ASP.NET Core MVC: How Is a Controller Recognized Without Following the Default Naming Convention or Using [Controller] Attribute?
In ASP.NET Core MVC, controllers are typically recognized automatically based on the naming convention (e.g., classes ending with Controller) or by using the [Controller] attribute. For example: