public async Task RemoveAsync(Guid id) { var user = await GetByIdAsync(id); _context.Remove(user); await _context.SaveChangesAsync(); }
public async Task RemoveAsync(Guid id) { var university = await GetByIdAsync(id); if (university == null) { return; } _context.Remove(university); await _context.SaveChangesAsync(); }