public IEnumerable <DeckDTO> GetSubscribedDecks(string userLogin)
        {
            var decks = userSubscriptions.GetDeckSubscriptions(userLogin)
                        .Select(x => x.Deck);

            return(decks.Select(x => converterToDto.ConvertToDeckDTO(x)));
        }
Пример #2
0
        public DeckDTO FindDeckDTOByName(string deckName)
        {
            Deck deck = moderation.FindDeckByName(deckName);

            return(converterToDTO.ConvertToDeckDTO(deck));
        }
Пример #3
0
 public IEnumerable <DeckDTO> GetAllDecks()
 {
     return(catalog.GetAllDecks()
            .Select(d => converterToDTO.ConvertToDeckDTO(d)));
 }