public async Task <Guid> AddProductAsync(Product product) { var dbProduct = ProductConverter.Convert(product); _dbContext.Products.Add(dbProduct); await _dbContext.SaveChangesAsync(); return(dbProduct.Id); }
public async Task <Guid> AddProductAsync(Product product) { var dbProduct = ProductConverter.Convert(product); _dbContext.Products.Add(dbProduct); await _dbContext.SaveChangesAsync(); return(dbProduct.Id); }