public async Task <IEnumerable <ScopeViewModel> > GetScopesAsync(string name)
        {
            var scopes = await _scopeRepository.FindByApiResourceNameAsync(name);

            return(scopes?.Select(s => _mapper.Map <ScopeViewModel>(s)));
        }