public static TResult GetIncludedResource <TResult>(this JsonApiCollectionDocument document, object id, JsonApiResource apiResource) where TResult : class { return((TResult)document.GetIncludedResource(id, typeof(TResult), apiResource)); }
public static TResult GetIncludedResource <TResult, TResultApiResource>(this JsonApiCollectionDocument document, object id) where TResultApiResource : JsonApiResource where TResult : class { return((TResult)document.GetIncludedResource(id, typeof(TResult), Activator.CreateInstance <TResultApiResource>())); }