internal IEdmTypeReference GetEdmType(Type type)
        {
            if (ResourceEdmType != null)
            {
                return(ResourceEdmType);
            }

            return(ODataMediaTypeFormatter.GetExpectedPayloadType(type, Path, Model));
        }