C# Class NotFoundMvc.ActionInvokerWrapper

Wraps another IActionInvoker except it handles the case of an action method not being found and invokes the NotFoundController instead.
Inheritance: IActionInvoker
Show file Open project: DevRainSolutions/KyivSmartCity

Public Methods

Method Description
ActionInvokerWrapper ( IActionInvoker actionInvoker ) : System.Web
InvokeAction ( ControllerContext controllerContext, string actionName ) : bool

Private Methods

Method Description
ExecuteNotFoundControllerAction ( ControllerContext controllerContext ) : void
InvokeActionWith404Catch ( ControllerContext controllerContext, string actionName ) : bool

Method Details

ActionInvokerWrapper() public method

public ActionInvokerWrapper ( IActionInvoker actionInvoker ) : System.Web
actionInvoker IActionInvoker
return System.Web

InvokeAction() public method

public InvokeAction ( ControllerContext controllerContext, string actionName ) : bool
controllerContext ControllerContext
actionName string
return bool