Create a TestController in the Controllers folder
Create a Test folder in Views and Create a view in it
Have the custom route configured in RouteConfig.cs as below
routes.MapRoute(
name: "TestRoute",
url: "Folder1/Folder2/Test/{action}/{id}",
defaults: new { controller = "Test", action = "GetAllSearchResult", id = UrlParameter.Optional }
);
So when you try the following url (route)
{root}/Folder1/Folder2/Test
GetAllSearchResult
action will be triggered and corresponding view will be rendered
You donot have to create folder within folder in the controllers to have a custom route. A custom route can be configured in the RouteConfig.cs.
hope it helps!