src/MVCContrib/SimplyRestful/SimplyRestfulRouteHandler.cs
/// <summary>Builds a Default object for a route.</summary>
/// <param name="restfulAction">The default action for the route.</param>
/// <param name="controllerName">The default controller for the route.</param>
/// <returns>An Anonymous Type with a default Action property and and default Controller property
/// if <paramref name="controllerName"/> is not null or empty.</returns>
Builds a Default object for a route.
Builds a Default object for a route .
private static RouteValueDictionary BuildDefaults(RestfulAction restfulAction, string controllerName)
		{
			if (string.IsNullOrEmpty(controllerName))
				return new RouteValueDictionary(new {Action = restfulAction == RestfulAction.None ? "" : restfulAction.ToString()});
			return
				new RouteValueDictionary(new {Action = restfulAction == RestfulAction.None ? "" : restfulAction.ToString(), Controller = controllerName});
		}
private static RouteValueDictionary BuildDefaults ( RestfulAction restfulAction , string controllerName ) { if ( string . IsNullOrEmpty ( controllerName ) ) return new RouteValueDictionary ( new { Action = restfulAction == RestfulAction . None ? " " : restfulAction . ToString ( ) } ) ; return new RouteValueDictionary ( new { Action = restfulAction == RestfulAction . None ? " " : restfulAction . ToString ( ) , Controller = controllerName } ) ; }
Builds a Default object for a route.
Builds a Default object for a route .
An Anonymous Type with a default Action property and and default Controller property
if  is not null or empty.
An Anonymous Type with a default Action property and and default Controller property if is not null or empty .
restfulAction
RestfulAction
The default action for the route.
The default action for the route .
controllerName
string
The default controller for the route.
The default controller for the route .