public async Task <List <JSONCategoryFilter> > GetAllFiltersFromCategory(int CategoryID) { var filters = await _queries.GetAllFiltersFromCategory(CategoryID); if (filters == null) { throw new Exception("Couldn't find any filters"); } return(filters); }