ControllerExtensions.ExecuteAction Method

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

Overloads

ExecuteAction(ControllerContext, Type, string, IDictionary) Executes an action method on another controller with the specified parameters.
ExecuteAction(ControllerContext, Expression>) Executes an action method on another controller.

ExecuteAction(ControllerContext, Type, string, IDictionary)

Executes an action method on another controller with the specified parameters.

public static ActionResult ExecuteAction(this ControllerContext context, Type controllerType, string actionName, IDictionary<string, object> parameters)

Parameters

context
System.Web.Mvc.ControllerContext

The current controller context.

controllerType
System.Type

The controller type that

actionName
string
parameters
System.Collections.Generic.IDictionary

Returns

System.Web.Mvc.ActionResult

ExecuteAction(ControllerContext, Expression>)

Executes an action method on another controller.

public static ActionResult ExecuteAction<TController>(this ControllerContext context, Expression<Action<TController>> expression)

    where TController : Controller

Parameters

context
System.Web.Mvc.ControllerContext
expression
System.Linq.Expressions.Expression>>

Returns

System.Web.Mvc.ActionResult