Posted on: 12/14/2014 6:46:47 PM | Views : 535

I have an MVC application and a module in which I define a URL template and some parameters and their corresponding values.
I want to create a routing algorithm similar to the Route algorithm created in the global.asax.
Let me define the objects that I am using for the same:-
ParameterDefinitions table
ParameterId ParameterName IsRequired 1 {PersonId} 1 2 {ProductId} 0 ParameterValues table
ParameterId Values 1 123 1 456 2 111 2 222 I want to create a function in C# so that it create all the possible routes for the templates such as follows:-

http://example.com/{Person ...

Go to the complete details ...