Site icon Dotnet Helpers

How to map multiple urls to the same controller/Action

In this post we are going to discuss about how to map multiple URLs to the same controller/Action by the custom route.

Below example shows how write custom route

Custom code must be place inside the RouteConfig.cs.

Explanation :

 OUTPUT :

Thanks to my friend manjunath for rise this question and make me find this solution

 

Exit mobile version