Пример #1
0
        public async Task <IEnumerable <CItemSet> > GetItemSetsAsync(ItemSetFilterParams filterParams)
        {
            IEnumerable <CItemSet> itemSets;

            if (filterParams.IsEmpty())
            {
                itemSets = await FindAllAsync();
            }
            else
            {
                itemSets = await FindAllByConditionsAsync(filterParams.AsFilters(), filterParams.FilterType, filterParams.ToCacheString());
            }

            return(itemSets.OrderItemSets(filterParams.SortOrder));
        }