Beispiel #1
0
        public override async Task <List <Team> > ReadAllAsync(bool descending = false)
        {
            var tableResult = await _teamTableStorageProvider.ReadAllAsync();

            var mappedTeams = await MapTeams(tableResult);

            return(OrderByDefault(mappedTeams, descending));
        }
Beispiel #2
0
        public virtual async Task <List <TEntity> > ReadAllAsync(bool descending = false)
        {
            var dataSet = await _tableStorageProvider.ReadAllAsync();

            var entitySet = dataSet.Select(p => _entityResolver.ToTargetType(p)).ToList();

            return(OrderByDefault(entitySet, descending));
        }