Method CreateRedirectResponse
CreateRedirectResponse(string)
Creates an new redirect HttpResponse with given location header.
[Obsolete("This method is deprecated and should not be used.")]
public static HttpResponse CreateRedirectResponse(string location)
Parameters
location
stringThe absolute or relative URL path which the client must be redirected to.
Returns
CreateRedirectResponse(RouteAction)
Creates an new redirect HttpResponse which redirects to the route path defined in a action. The provided method must have a valid RouteAttribute attribute.
[Obsolete("This method is deprecated and should not be used.")]
public static HttpResponse CreateRedirectResponse(RouteAction action)
Parameters
action
RouteActionThe receiving action contains a RouteAttribute attribute and its method is GET or ANY.