UrlHelperExtensions.Back Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

Overloads

Back(UrlHelper, string) Get an url suitable for navigating back from the current page.
Back(UrlHelper, Expression>) Helper method for generating for getting an url for navigating back from the current page.

Back(UrlHelper, string)

Get an url suitable for navigating back from the current page.

public static string Back(this UrlHelper helper, string url)

Parameters

helper
System.Web.Mvc.UrlHelper

The URL helper instance that this method extends.

url
string

Default back url.

Returns

string

Back(UrlHelper, Expression>)

Helper method for generating for getting an url for navigating back from the current page.

public static string Back<TController>(this UrlHelper helper, Expression<Action<TController>> expression)

    where TController : Controller

Parameters

helper
System.Web.Mvc.UrlHelper

The URL helper instance that this method extends.

expression
System.Linq.Expressions.Expression>>

Returns

string