/// <summary>
        /// Ajax the error.
        /// </summary>
        /// <param name="filterContext">The filter context.</param>
        private void AjaxError(ExceptionContext filterContext)
        {
            if (filterContext.Exception != null)
            {
                var jsonResult = new JsonRequestResult { ResultType = JsonRequestResultType.Error };

                if (filterContext.GetType() == typeof(ExceptionContext))
                {
                    if (filterContext.Result != null && ((ViewResultBase)(filterContext.Result)).Model != null)
                    {
                        // Get InnerException
                        jsonResult.Message = CustomException.TranslateException(filterContext.Exception);
                        jsonResult.Description = String.Format("Detalhes: {0}", CustomException.GetInnerException(filterContext.Exception).Message);

                        //LogService.Log("BaseController.AjaxError()", filterContext.Exception);
                    }
                }
                filterContext.ExceptionHandled = true;
                filterContext.HttpContext.Response.StatusCode = 500;
                filterContext.Result = Json(jsonResult);
            }
        }