public override void OnException(ExceptionContext filterContext)
        {
            var typeException       = filterContext.TypeException();
            var messageException    = filterContext.MessageException();
            var controllerException = filterContext.ControllerBase();

            filterContext.ExceptionHandled = true;
            filterContext.HttpContext.Response.TrySkipIisCustomErrors = true;
            filterContext.HttpContext.Response.StatusCode             = (int)HttpStatusCode.OK;

            if (filterContext.IsAjaxRequest())
            {
                filterContext.Result = new JsonFactory().Failure(typeException, messageException);
            }
            else
            {
                SetResult(filterContext);
                new TempDataFactory().CreateFailure(controllerException, messageException);
            }
        }