public async Task<ProductDto> AddAsync(ProductDto item)
{
var product = await _unitOfWork.ProductRepository.AddAsync(item);
return _mapper.Map<ProductDto>(product);
}
public async Task<Product> AddAsync(Product id)
{
_context.Set<Product>().Add(id);
await _context.SaveChangesAsync();
return id;
}