diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionResultFactory.cs b/src/Microsoft.AspNet.Mvc.Core/ActionResultFactory.cs index b298ce65d1..4f7e1400d7 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ActionResultFactory.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ActionResultFactory.cs @@ -38,7 +38,7 @@ namespace Microsoft.AspNet.Mvc throw new InvalidOperationException("HttpActionDescriptor_NoConverterForGenericParamterTypeExists"); } - if (declaredReturnType.IsAssignableFrom(typeof(void)) || actionReturnValue == null) + if (declaredReturnType == typeof(void) || actionReturnValue == null) { return new NoContentResult(); }