コード例 #1
0
        public async Task RemoveAsync(Guid id)
        {
            var user = await GetByIdAsync(id);

            _context.Remove(user);
            await _context.SaveChangesAsync();
        }
コード例 #2
0
        public async Task RemoveAsync(Guid id)
        {
            var university = await GetByIdAsync(id);

            if (university == null)
            {
                return;
            }
            _context.Remove(university);
            await _context.SaveChangesAsync();
        }