BarNapkin.Infrastructure.WebUI.Filters.Errors.RedirectToUrlOnErrorAttribute.Redirect C# (CSharp) Method

Redirect() protected method

protected Redirect ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
return void
        protected override void Redirect(ActionExecutedContext filterContext)
        {
            PlaceInItemDictionary("Error", filterContext.Exception, filterContext);
            PlaceInItemDictionary("Controller", filterContext.ActionDescriptor.ControllerDescriptor.ControllerName, filterContext);
            PlaceInItemDictionary("Action", filterContext.ActionDescriptor.ActionName, filterContext);
            filterContext.ExceptionHandled = true;
            //filterContext.HttpContext.Server.Transfer(Url, true);
            var transferResult = new TransferResult(Url);
            transferResult.ExecuteResult(filterContext.Controller.ControllerContext);
        }