public async Task <List <CategoryDTO> > GetAllCategories()
        {
            var categories = await _queries.GetAllCategories();

            if (categories == null)
            {
                throw new Exception("Couldn't find categories");
            }

            return(categories);
        }