public ListResult <ObjectFormatSearchResultListItem> FormatSearch(ListCommand listCommand, int siteId, int?templateId, int?pageId, string filter) { var data = PageTemplateRepository.GetSearchFormatPage(listCommand, siteId, templateId, pageId, filter, out var totalRecords).ToList(); ManageFormatSearchItemsDescription(data, filter); return(new ListResult <ObjectFormatSearchResultListItem> { Data = data, TotalRecords = totalRecords }); }