public async Task <T> AddAsync(T entity)
        {
            await _context.Set <T>().AddAsync(entity);

            await _context.SaveChangesAsync();

            return(entity);
        }
        public async Task <ProductDto> AddAsync(ProductDto entity)
        {
            var result = await _context.Set <Product>().AddAsync(_mapper.Map <Product>(entity));

            await _context.SaveChangesAsync().ConfigureAwait(false);

            return(_mapper.Map <ProductDto>(result));
        }