private static void ExecuteNotFoundControllerAction(ControllerContext controllerContext) { IController controller; if (NotFoundHandler.CreateNotFoundController != null) { controller = NotFoundHandler.CreateNotFoundController(controllerContext.RequestContext) ?? new NotFoundController(); } else { controller = new NotFoundController(); } controller.Execute(controllerContext.RequestContext); }
static void ExecuteNotFoundControllerAction(ControllerContext controllerContext) { IController controller; if (NotFoundHandler.CreateNotFoundController != null) { controller = NotFoundHandler.CreateNotFoundController(controllerContext.RequestContext) ?? new NotFoundController(); } else { controller = new NotFoundController(); } controller.Execute(controllerContext.RequestContext); }
static void ExecuteNotFoundControllerAction(ControllerContext controllerContext) { var controller = new NotFoundController(); controller.ExecuteNotFound(controllerContext.RequestContext); }