Exemple #1
0
 public async Task Update(Coffee coffee)
 {
     _context.Coffees.Update(coffee);
     await _context.SaveChangesAsync();
 }
Exemple #2
0
        public async Task AddCoffeeOrder(Coffee coffee)
        {
            await _context.Coffees.AddAsync(coffee);

            await _context.SaveChangesAsync();
        }