Here is the code: I couldn't put it all in the same message for some reason:
Child View model:
public ResourcesExpandViewModel ResourcesExpand { get; set; }
public ResourcesExpandViewModel parentHero { get; set; }
public static ResourceItemViewModel GetViewModel(ResourceItem resourceItem, IPageUrlRetriever pageUrlRetriever, IPageAttachmentUrlRetriever attachmentUrlRetriever, ResourcesExpand parentHero)
{
ResourceItemViewModel model = new ResourceItemViewModel();
//THIS IS WHERE I AM REFERENCING THE FIELD FROM THE PARENT VIEW MODEL
model.HeroImg = parentHero.Fields.HeroImg;
model.RelatedResources = resourceItem.Fields._RelatedResources.Select(p => ResourceItemViewModel.GetViewModel((ResourceItem)p, pageUrlRetriever, attachmentUrlRetriever));
return model;
}
Child Controller: public async Task