Example #1
0
        public async Task <TokenModelCollection> GetCollection(string sessionId)
        {
            var ledgerEntries = await _repository.GetAddedCollectionBySession(sessionId);

            var insertedTokens = ledgerEntries.Select(p => p.Token).ToList();

            return(_mapper.Map <TokenModelCollection>(insertedTokens));
        }