/// <inheritdoc/> public async Task <Product> InsertAsync(Product product) { await _avertoryDbContext.Products.AddAsync(product); // Unit of work? await _avertoryDbContext.SaveChangesAsync(); return(product); }
/// <inheritdoc/> public async Task <Inventory> InsertAsync(Inventory inventory) { await _avertoryDbContext.Inventories.AddAsync(inventory); await _avertoryDbContext.SaveChangesAsync(); return(inventory); }
/// <inheritdoc/> public async Task InsertItemsAsync(IEnumerable <Item> items) { await _avertoryDbContext.Items.AddRangeAsync(items); await _avertoryDbContext.SaveChangesAsync(); }