protected virtual async Task UpdateAsync(Guid skuId) { var entity = await _productUpdateRepository.FindAsync(x => x.ProductSkuId == skuId); if (entity == null) { entity = new ProductUpdate(_guidGenerator.Create(), skuId); await _productUpdateRepository.InsertAsync(entity); } else { await _productUpdateRepository.UpdateAsync(entity); } }