System.Web.Mvc.ReflectedActionDescriptor descriptor = filterContext.ActionDescriptor as System.Web.Mvc.ReflectedActionDescriptor; if (descriptor != null) { Type actionType =descriptor.MethodInfo.ReturnType; if (actionType.Equals(typeof(ActionResult))…