The following extension was necessary for us to write on your system.web version of this library.
You made classes public so that we could do extensions like this in that library.
This is a preemptive attempt at making sure the same kind of classes are now exposed publicly in this library too.
public static RouteValueDictionary RouteValueDictionary<TController>(
this UrlHelper helper,
Expression<Func<TController, Task>> action,
object routeValues = null)
where TController : Controller
{
var routeInfo = RouteInformation.FromExpression<TController>(action, routeValues);
var dictionary = routeInfo.RouteValueDictionary;
dictionary.Add("controller", routeInfo.ControllerName);
dictionary.Add("action", routeInfo.ActionName);
return dictionary;
}
The following extension was necessary for us to write on your system.web version of this library. You made classes public so that we could do extensions like this in that library. This is a preemptive attempt at making sure the same kind of classes are now exposed publicly in this library too.
Thanks!!