Exemplo n.º 1
0
        public JsonResult GetChildList([FromBody] ChildListQuery query)
        {
            query.Parser = _parser;
            var data = EntityObjectService.GetEntityTreeItems(query);

            return(Json(data));
        }
Exemplo n.º 2
0
        public JsonNetResult <IList <EntityTreeItem> > GetChildList(
            string entityTypeCode,
            int?parentEntityId,
            int?entityId,
            bool returnSelf,
            string filter,
            string hostFilter,
            string selectItemIDs,
            [ModelBinder(typeof(JsonStringModelBinder <ArticleSearchQueryParam[]>))] ArticleSearchQueryParam[] searchQuery,
            [ModelBinder(typeof(JsonStringModelBinder <ArticleContextQueryParam[]>))] ArticleContextQueryParam[] contextQuery)
        {
            var ftsParser = DependencyResolver.Current.GetService <ArticleFullTextSearchQueryParser>();
            var data      = EntityObjectService.GetEntityTreeItems(entityTypeCode, parentEntityId, entityId, returnSelf, filter, hostFilter, selectItemIDs, searchQuery, contextQuery, ftsParser);

            return(new JsonNetResult <IList <EntityTreeItem> >(data));
        }