ASP.NET-MVC-Lambda-Expression-Helpers
ASP.NET-MVC-Lambda-Expression-Helpers copied to clipboard
Get string outside of controller/url/helper/etc
There are places where we need help generating URLs outside of a controller. For example, when setting up special routes:
routes.MapRoute("health", "health", "/Health");
Would be nice to do something like this:
routes.MapRoute("health", "health", System.Web.Mvc.Expressions.Url<HomeController>(c=>c.Health());
@waynebrantley We will take a look. It is an interesting feature and it's helpful for sure!