@@ -86,7 +86,7 @@ public object Map(Topic topic, Relationships relationships = Relationships.All)
8686 /*----------------------------------------------------------------------------------------------------------------------
8787 | Return cached result
8888 \---------------------------------------------------------------------------------------------------------------------*/
89- return CacheViewModel ( topic . ContentType , _topicMappingService . Map ( topic ) , cacheKey ) ;
89+ return CacheViewModel ( topic . ContentType , _topicMappingService . Map ( topic , relationships ) , cacheKey ) ;
9090
9191 }
9292
@@ -121,7 +121,7 @@ public object Map(Topic topic, Relationships relationships = Relationships.All)
121121 /*----------------------------------------------------------------------------------------------------------------------
122122 | Return cached result
123123 \---------------------------------------------------------------------------------------------------------------------*/
124- return ( T ) CacheViewModel ( topic . ContentType , _topicMappingService . Map ( topic ) , cacheKey ) ;
124+ return CacheViewModel ( topic . ContentType , _topicMappingService . Map < T > ( topic , relationships ) , cacheKey ) as T ;
125125
126126 }
127127
@@ -150,7 +150,7 @@ public object Map(Topic topic, object target, Relationships relationships = Rela
150150 /*----------------------------------------------------------------------------------------------------------------------
151151 | Return cached result
152152 \---------------------------------------------------------------------------------------------------------------------*/
153- return CacheViewModel ( topic . ContentType , _topicMappingService . Map ( topic ) , cacheKey ) ;
153+ return CacheViewModel ( topic . ContentType , _topicMappingService . Map ( topic , relationships ) , cacheKey ) ;
154154
155155 }
156156
0 commit comments