src/MVCContrib/ControllerExtensions.cs
/// <summary>
/// Redirects to an action on the same or another controller using expression-based syntax
/// </summary>
/// <typeparam name="T">The type of the controller on which to call the action</typeparam>
/// <param name="controller">The instance of the controller which provides access to this method</param>
/// <param name="action">An expression which identifies the action to redirect to on the controller of type <typeparamref name="T"/></param>
/// <returns>A <see cref="RedirectToRouteResult"/> pointing to the action specified by the <paramref name="action"/> expression</returns>
Redirects to an action on the same or another controller using expression-based syntax
Redirects to an action on the same or another controller using expression - based syntax
public static RedirectToRouteResult RedirectToAction<T>(this Controller controller, Expression<Action<T>> action)
			where T : Controller
		{
			return new RedirectToRouteResult<T>(action);
		}
public static RedirectToRouteResult RedirectToAction < T > ( this Controller controller , Expression < Action < T > > action ) where T : Controller { return new RedirectToRouteResult < T > ( action ) ; }
Redirects to an action on the same or another controller using expression-based syntax
Redirects to an action on the same or another controller using expression - based syntax
/*var body = action.Body as MethodCallExpression;
			AddParameterValuesFromExpressionToTempData(controller, body);
			var routeValues = ExpressionHelper.GetRouteValuesFromExpression(action);
			RemoveReferenceTypesFromRouteValues(routeValues);
			return new RedirectToRouteResult(routeValues);*/
A  pointing to the action specified by the  expression
A pointing to the action specified by the expression
Controller
this
action
Expression<Action<T>>
An expression which identifies the action to redirect to on the controller of type
An expression which identifies the action to redirect to on the controller of type
controller
The instance of the controller which provides access to this method
The instance of the controller which provides access to this method
typeparam
The type of the controller on which to call the action
The type of the controller on which to call the action