Example #1
0
        public HttpRouteDescriptor BuildRouteExplicit <TController, TParam1, TParam2, TResult>(Expression <Func <TController, Func <TParam1, TParam2, TResult> > > expression, params string[] routeParts)
            where TController : ApiController
        {
            var actionName = ReflectOnMethod <TController> .NameOf(expression);

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