Skip to content

outring/TypedRoute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Strongly typed ASP.NET MVC MapRoute

This implementation of strongly typed MapRoute is based on the code by Diego Perez, but it can work with areas (even without specifying namespaces). Also you can forget about specifying routes names and even url (for inner actions) if you want.

Usage:

routes.MapRoute<MyController>(c => c.InnerAction());
routes.MapRoute<MyController>("some/action/{parameter}", c => c.Action("Default parameter value"));
routes.MapRoute<MyController>("some/another/action/{parameter}", c => c.Action(ItIs.Any<string>())); //No default value

About

Strongly typed ASP.NET MVC MapRoute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages