public async Task <IEnumerable <ScopeViewModel> > GetScopes(string name)
        {
            var scopes = await _apiScopeRepository.GetScopesByResource(name);

            return(_mapper.Map <IEnumerable <ScopeViewModel> >(scopes));
        }