I made a test with code below to update the Product:
Product
var existing = await _productRepository.FirstOrDefaultAsync(c => c.Id == input.Id); if (
Check the value of updatedEntity.Id, if it's zero then use the below code.
updatedEntity.Id
var updatedEntity = ObjectMapper.Map(input); updatedEntity.Id = input.Id; //set Id manually var entity = await _productRepository.UpdateAsync(updatedEntity);