public async Task <Response <IEnumerable <GetAllProductsViewModel> > > Handle(GetAllProductsQuery request, CancellationToken cancellationToken)
        {
            var validFilter = _mapper.Map <GetAllProductsParameter>(request);
            var product     = new List <Product>();

            if (request.ReturnImages)
            {
                var productWithImages = await _productRepository.GetAllWithCategoriesAsync();

                product = productWithImages.ToList();
            }
            else
            {
                var productWithoutImages = await _productRepository.GetAllWithCategoriesWithoutImagesAsync();

                product = productWithoutImages.ToList();
            }
            var productViewModel = _mapper.Map <IEnumerable <GetAllProductsViewModel> >(product);

            return(new Response <IEnumerable <GetAllProductsViewModel> >(productViewModel));
        }