示例#1
0
        public async Task DeleteByIdAsync(Guid productId)
        {
            var product = await _context.Users.FindAsync(productId);

            _context.Remove(product);
        }
示例#2
0
 public async Task DeleteByIdAsync(Guid userId)
 {
    var user = await _context.Users.FindAsync(userId);
    _context.Remove(user);
 }