public async Task <IEnumerable <string> > GetScopes(string search) { var identityScopes = await _identityResourcesRepository.SearchScopes(search); var apiScopes = await _identityResourcesRepository.SearchScopes(search); identityScopes.AddRange(apiScopes); return(identityScopes.OrderBy(a => a)); }