public async Task <ImageEntity> GetByIdAsync(Guid imageId)
        {
            logger.LogDebug($"Attempting to get an image with id {imageId}.");

            return(await EntityFrameworkDynamicQueryableExtensions.FirstOrDefaultAsync(dbContext.Images
                                                                                       .Where(x => x.Id.Equals(imageId))));
        }
        public async Task <bool> DoesWishlistItemExistsAsync(WishlistEntity entity)
        {
            logger.LogDebug($"Attempting to check if a wishlist already exists.");

            return(await EntityFrameworkDynamicQueryableExtensions.CountAsync(dbContext.Wishlists
                                                                              .Where(x => x.ProductId == entity.ProductId)
                                                                              .Where(x => x.UserId == entity.UserId)) > 0);
        }