Пример #1
0
    public async Task <IEnumerable <ScopeInfo> > GetScopesAsync()
    {
        var items = await _repository.ListAsync(new AllScopes());

        return(items.Select(x =>
        {
            return ToInfo(x);
        }));
    }