public dynamic GetEntityModelData(ContentNamespace ns, int publicationId, int entityId, int templateId,
                                   ContentIncludeMode contentIncludeMode, IContextData contextData)
 {
     try
     {
         var response =
             _client.Execute(GraphQLRequests.EntityModelData(ns, publicationId, entityId, templateId,
                                                             contentIncludeMode, contextData, GlobalContextDataInternal));
         return(response.Data.componentPresentation.rawContent.data);
     }
     catch (RuntimeBinderException e)
     {
         throw new ApiException(
                   $"Failed to get enity model data (namespaceId:{ns}, publicationId:{publicationId}, entityId:{entityId}",
                   e);
     }
 }
        public async Task <dynamic> GetEntityModelDataAsync(ContentNamespace ns, int publicationId, int entityId,
                                                            int templateId, ContentIncludeMode contentIncludeMode, IContextData contextData,
                                                            CancellationToken cancellationToken = default(CancellationToken))
        {
            try
            {
                var response =
                    await
                    _client.ExecuteAsync(
                        GraphQLRequests.EntityModelData(ns, publicationId, entityId, templateId,
                                                        contentIncludeMode, contextData, GlobalContextDataInternal), cancellationToken)
                    .ConfigureAwait(false);

                return(response.Data.entity.rawContent.data);
            }
            catch (RuntimeBinderException e)
            {
                throw new ApiException(
                          $"Failed to get enity model data (namespaceId:{ns}, publicationId:{publicationId}, entityId:{entityId}",
                          e);
            }
        }