private void DoUnmarshalling(ActionExecutingContext filterContext) { unmarshallerResolver.DetectIn(filterContext); if (unmarshallerResolver.HasResource) { var requestMediaType = contentType.GetMediaType(requestInfo.GetContentType()); var resource = requestMediaType.BuildUnmarshaller().Build(requestInfo.GetContent(), unmarshallerResolver.ParameterType); if (resource != null) { filterContext.ActionParameters[unmarshallerResolver.ParameterName] = resource; } } }