Пример #1
0
        static RouteParameter CreateRouteParameter(ActionParameterInfo actionParam)
        {
            IFromRouteAttribute routeAttr = actionParam.FromRouteAttribute;

            bool isCatchAll = (routeAttr != null) ?
                              routeAttr.CatchAll
            : false;

            return(actionParam.Action.Controller.CreateRouteParameter(actionParam.Name, actionParam.Type, routeAttr, actionParam.IsOptional, isCatchAll));
        }
Пример #2
0
        static RouteParameter CreateRouteParameter(ActionParameterInfo actionParam)
        {
            IFromRouteAttribute routeAttr = actionParam.FromRouteAttribute;

             bool isCatchAll = (routeAttr != null) ?
            routeAttr.CatchAll
            : false;

             return actionParam.Action.Controller.CreateRouteParameter(actionParam.Name, actionParam.Type, routeAttr, actionParam.IsOptional, isCatchAll);
        }