protected override void OnException(ExceptionContext filterContext)
 {
     //write your custom code here
     //objLog.Info(filterContext.Exception.Data.Values); will get the controller and action method
     AsyncLogger.Error(filterContext.Exception.Message);
     AsyncLogger.Error(filterContext.Exception.InnerException.Message);
     AsyncLogger.Error(filterContext.Exception.Source);
     AsyncLogger.Error(filterContext.Exception.StackTrace);
 }
        public override void OnException(HttpActionExecutedContext objContext)
        {
            AsyncLogger.Error(objContext.Exception.Message);
            AsyncLogger.Error(objContext.Exception.Source);
            AsyncLogger.Error(objContext.Exception.StackTrace);

            if (objContext.Exception is NotImplementedException)
            {
                //context.Response = new  HttpResponseMessage(HttpStatusCode.NotImplemented);
                //write your custom code here
                //objLog.Info(filterContext.Exception.Data.Values); will get the controller and action method
            }
        }