C# Class Decision.Common.Extentions.UrlHelperExtensions

UrlHelper extension methods.
Show file Open project: rabbal/Decision

Public Methods

Method Description
AbsoluteAction ( this url, string actionName, string controllerName, object routeValues = null ) : string

Generates a fully qualified URL to an action method by using the specified action name, controller name and route values.

AbsoluteContent ( this url, string contentPath ) : string

Generates a fully qualified URL to the specified content by using the specified content path. Converts a virtual (relative) path to an application absolute path.

AbsoluteRouteUrl ( this url, string routeName, object routeValues = null ) : string

Generates a fully qualified URL to the specified route by using the route name and route values.

Method Details

AbsoluteAction() public static method

Generates a fully qualified URL to an action method by using the specified action name, controller name and route values.
public static AbsoluteAction ( this url, string actionName, string controllerName, object routeValues = null ) : string
url this The URL helper.
actionName string The name of the action method.
controllerName string The name of the controller.
routeValues object The route values.
return string

AbsoluteContent() public static method

Generates a fully qualified URL to the specified content by using the specified content path. Converts a virtual (relative) path to an application absolute path.
public static AbsoluteContent ( this url, string contentPath ) : string
url this The URL helper.
contentPath string The content path.
return string

AbsoluteRouteUrl() public static method

Generates a fully qualified URL to the specified route by using the route name and route values.
public static AbsoluteRouteUrl ( this url, string routeName, object routeValues = null ) : string
url this The URL helper.
routeName string Name of the route.
routeValues object The route values.
return string