Example #1
0
        public List <FilterV2> Get()
        {
            var filterDtos = _discoveryService.GetFilters();

            var filters = filterDtos.Select(f => new FilterV2()
            {
                Name    = f.Name,
                Options = f.Options.Select(o => new FilterOptionV2()
                {
                    Name = o
                }).ToList()
            }).ToList();

            return(filters);
        }
Example #2
0
 public List <FilterDto> Filters()
 {
     return(_discoveryService.GetFilters());
 }