public async Task <ProductInputOutputDto> Update(ProductInputOutputDto input)
        {
            var entity = await GetEntityByIdAsync(input.Id);

            ObjectMapper.Map(input, entity);
            await CurrentUnitOfWork.SaveChangesAsync();

            return(ObjectMapper.Map <ProductInputOutputDto>(entity));
        }
        public async Task <ProductInputOutputDto> Create(ProductInputOutputDto input)
        {
            var entity = ObjectMapper.Map <Entities.Product>(input);

            await _productRepository.InsertAsync(entity);

            await CurrentUnitOfWork.SaveChangesAsync();

            return(ObjectMapper.Map <ProductInputOutputDto>(entity));
        }