Multiple action in one controller

Oct 18, 2013 at 7:34 PM
Hi, i need to know how should i define Multiple action in one controller for url routing in asp.net MVC

I have following three controller of Products, Auctions and Error. By default Index View is calling but i need to called another view of (Products) controller as well like (getproduct, MaxProduct) views.
public static void RegisterRoutes(RouteCollection routes)
        {
            routes.MapRoute("Products", "{controller}/{action}", new { controller = "Products", action = "Product", id = UrlParameter.Optional });
            routes.MapRoute("Auctions", "{controller}/{action}", new { controller = "Auctions", action = "Index", id = UrlParameter.Optional });
            routes.MapRoute("Error", "{controller}/{action}", new { controller = "Error", action = "Index"});
        }
Please advice
Thanks,
Taha
Coordinator
Oct 20, 2013 at 2:12 PM
Wrong project, this is the MVC Forum project, visit the ASP.NET project and ask your question there please!