Esempio n. 1
0
        public IEnumerable <string> Get()
        {
            var tableNames = _tableRepository
                             .GetAvailable()
                             .Select(_ => _.Name)
                             .ToArray();

            return(tableNames.Select(_ => _dataSourceAuthorityNameBuilder.GetDataSourceAuthorityName(_)));
        }
        public IEnumerable <long> GetDataSourceProjects(string dataSourceKey, long userId)
        {
            if (dataSourceKey == null)
            {
                throw new ArgumentNullException(nameof(dataSourceKey));
            }

            var authorityName = _dataSourceAuthorityNameBuilder.GetDataSourceAuthorityName(dataSourceKey);

            return(_userAuthorityValidator.GetProjects(userId, new[] { authorityName }));
        }