private void AddHandlerForParameterizedAction(RouteHandler routes, HttpMethodAttribute att, MethodInfo info) { ParameterizedAction action = ParameterizedActionFactory.CreateAction (info); ParameterizedActionTarget target = new ParameterizedActionTarget (this, info, action); AddImplicitRouteHandlerForTarget (target, att.Patterns, att.Methods, att.MatchType); }
private void AddDefaultHandlerForParameterizedAction(RouteHandler routes, MethodInfo info) { ParameterizedAction action = ParameterizedActionFactory.CreateAction (info); ParameterizedActionTarget target = new ParameterizedActionTarget (this, info, action); AddImplicitRouteHandlerForTarget (target, new string [] { "/" + info.Name }, HttpMethods.RouteMethods, MatchType.String); }