public async Task <Coin> AddAsync(Coin newCoin) { await _vendingContext.Coins.AddAsync(newCoin); await _vendingContext.SaveChangesAsync(); return(newCoin); }
public async Task <Product> AddAsync(Product newProduct) { await _vendingContext.Products.AddAsync(newProduct); await _vendingContext.SaveChangesAsync(); return(newProduct); }