public async Task DeleteDomain(Guid id) { if (DomainIdMap.TryGetValue(id, out Domain domain)) { DomainIdMap.Remove(id); DomainNameMap.Remove(domain.Name); } }
public async Task <Domain> GetDomain(Guid id) { if (DomainIdMap.TryGetValue(id, out Domain domain)) { return(await SetDomainRoles(domain)); } return(null); }