Exemplo n.º 1
0
        /// <summary>
        /// Displays a self contained error page without redirecting.
        /// Depends on ErrorController.ShowError() to exist
        /// </summary>
        /// <param name="title"></param>
        /// <param name="message"></param>
        /// <param name="redirectTo"></param>
        /// <returns></returns>
        protected internal ActionResult DisplayErrorPage(string title, string message, string redirectTo = null)
        {
            ErrorController controller = new ErrorController();

            controller.InitializeForced(ControllerContext.RequestContext);
            return(controller.ShowError(title, message, redirectTo));
        }