Example #1
0
        public static DeckDm Map(Deck em)
        {
            var dm = new DeckDm
            {
                Id        = em.DeckId,
                DeckName  = em.DeckName,
                Commander = CardMapper.Map(em.Card),
                Cards     = CardMap(em.DeckCards).ToList()
            };

            return(dm);
        }
Example #2
0
 private static CardDm CardMap(DeckCard em)
 {
     return(CardMapper.Map(em.Card));
 }