Inheritance: IController, INotFoundController
        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);
        }
Exemple #2
0
        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);
 }