I am working on a simple MVC website. In my project there is only one controller ( Home) and 2 methods of action in it ( Indexand Innerpages). Homethe action returns a view for the home page, and the Innerpage action returns content for the inner pages (inner pages use a single template, so use a single view for all inner pages).
Now all I want, if I run the project, I got a menu like:
http:
http:
http:
But instead of the above path, I need such paths as:
http:
http:
http:
without adding a new controller, and the URL should invoke the appropriate action methods.
My routing file
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Could you help me with this?