public async Task <ProductDto> AddProductAsync(ProductDto product) { var newProduct = await _beerContext.AddAsync(_productTranslator.ToModel(product)); await _beerContext.SaveChangesAsync(); var dbProduct = await _beerContext.Products.AsNoTracking().FirstOrDefaultAsync(p => p.EAN == product.EAN); return(_productTranslator.ToDto(dbProduct)); }