src/MVCContrib/ControllerExtensions.cs
/// <summary>
/// Redirects to an action on the same 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 of type <typeparamref name="T"/> 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 controller using expression-based syntax
Redirects to an action on the same controller using expression - based syntax
public static RedirectToRouteResult RedirectToAction<T>(this T controller, Expression<Action<T>> action)
			where T : Controller
		{
			return ((Controller)controller).RedirectToAction(action);
		}
public static RedirectToRouteResult RedirectToAction < T > ( this T controller , Expression < Action < T > > action ) where T : Controller { return ( ( Controller ) controller ) . RedirectToAction ( action ) ; }
Redirects to an action on the same controller using expression-based syntax
Redirects to an action on the same controller using expression - based syntax
A  pointing to the action specified by the  expression
A pointing to the action specified by the expression
T
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 of type  which provides access to this method
The instance of the controller of type 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