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 parameters)

Parameters

context
System.Web.Mvc.ControllerContext
controllerType
System.Type
actionName
System.String
parameters
System.Collections.Generic.IDictionary{System.String,System.Object}

Returns

System.Web.Mvc.ActionResult

ExecuteAction(ControllerContext, Expression>)

Executes an action method on another controller.

public static ActionResult ExecuteAction(this ControllerContext context, Expression> expression)
    where TController : Controller

Parameters

context
System.Web.Mvc.ControllerContext
expression
System.Linq.Expressions.Expression{System.Action{{TController}}}

Returns

System.Web.Mvc.ActionResult