示例#1
0
        public RouteDescriptor BuildRoute <TController, TParam1, TParam2, TParam3, TParam4>(Expression <Func <TController, Func <TParam1, TParam2, TParam3, TParam4, Task <ActionResult> > > > expression, params string[] routeParts)
            where TController : Controller
        {
            var actionName = ReflectOnMethod <TController> .NameOf(expression);

            return(BuildMvcRoute(this.moduleAreaName, typeof(TController), actionName, string.Join("/", routeParts)));
        }
示例#2
0
        public HttpRouteDescriptor BuildRoute <TController, TParam>(Expression <Func <TController, Func <TParam, IHttpActionResult> > > expression, params string[] routeParts)
            where TController : ApiController
        {
            var actionName = ReflectOnMethod <TController> .NameOf(expression);

            return(this.MakeRouteDescriptor(typeof(TController), string.Join("/", routeParts), actionName));
        }