ASP.NET-MVC-Lambda-Expression-Helpers icon indicating copy to clipboard operation
ASP.NET-MVC-Lambda-Expression-Helpers copied to clipboard

Get string outside of controller/url/helper/etc

Open waynebrantley opened this issue 7 years ago • 1 comments

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 avatar Nov 20 '16 02:11 waynebrantley

@waynebrantley We will take a look. It is an interesting feature and it's helpful for sure!

ivaylokenov avatar Nov 20 '16 08:11 ivaylokenov