public async Task UpdateAsync(AlipayUser user) { _context.Entry(user).State = Microsoft.EntityFrameworkCore.EntityState.Modified; await _context.SaveChangesAsync(); }
public async Task LockOrderAsync(Order order) { order.State = (int)OrderStatus.Locked; _context.Entry(order).State = Microsoft.EntityFrameworkCore.EntityState.Modified; await _context.SaveChangesAsync(); }