Ejemplo n.º 1
0
        private static ListResult <ObjectFormatVersionListItem> GetObjectFormatVersionsByFormatId(ListCommand listCommand, int formatId, bool pageOrTemplate)
        {
            var list = PageTemplateRepository.ListFormatVersions(listCommand, formatId, out var totalRecords, pageOrTemplate);

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