protected override DriverResult Editor(RelatedByPart part, dynamic shapeHelper) { return(ContentShape("Parts_RelatedBy_Edit", () => { var relatedContentItems = mRelationshipService.GetRelatedByContentItems <ContentItem>(part.Id, VersionOptions.Latest, QueryHints.Empty); var viewModel = new RelatedByByViewModel { RelatedContentItems = relatedContentItems }; return shapeHelper.EditorTemplate(TemplateName: "Parts/RelatedBy", Model: viewModel, Prefix: Prefix); })); }