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); }
public List <FilterDto> Filters() { return(_discoveryService.GetFilters()); }