Exemple #1
0
        private static ListResult <ObjectFormatListItem> GetObjectFormatsByObjectId(ListCommand listCommand, int objectId, bool pageOrTemplate)
        {
            var list = PageTemplateRepository.ListObjectFormats(listCommand, objectId, out var totalRecords, pageOrTemplate);

            return(new ListResult <ObjectFormatListItem>
            {
                Data = list.ToList(),
                TotalRecords = totalRecords
            });
        }