I am trying to fetch the DCP in DXA .NET application. I found some link where it has been mentioned to use
ContentProvider.GetEntityModel() but it takes a
Localization as input. So always it takes the publication ID of the Publication where the Web url is linked.
My requirement is to fetch the DCP from other Publications as well, like
ComponentPresentationFactory.TryGetComponent(componentTcmId, CTTcmId); Where I can instantiate
ComponentPresentationFactory with respective Publication ID?
Or is there any way to customize the
WebRequestContext to point to other web Publication dynamically?