Пример #1
0
        public ListResult <ObjectSearchListItem> ObjectSearch(ListCommand listCommand, int siteId, int?templateId, int?pageId, string filter)
        {
            var data = PageTemplateRepository.GetSearchObjectPage(listCommand, siteId, templateId, pageId, filter, out var totalRecords).ToList();

            ManageObjectSearchItemsDescription(data, filter);
            return(new ListResult <ObjectSearchListItem>
            {
                Data = data,
                TotalRecords = totalRecords
            });
        }