Beispiel #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));
        }
        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);
        }