public async Task UpdateOrder(Order order) { if (order == null) { throw new ArgumentNullException(); } _context.Update(order); await _context.SaveChangesAsync(); }
public async Task UpdateUser(User user) { _context.Update(user); await _context.SaveChangesAsync(); }
public async Task UpdateProduct(Product product) { _context.Update(product); await _context.SaveChangesAsync(); }