public IEnumerable <CardModel> GetHeroes() { FindPlayableHeroCardsQuery findPlayableHeroCardsQuery = new FindPlayableHeroCardsQuery();// IEnumerable <HeroCard> heroes = _cardCache.Query(findPlayableHeroCardsQuery); //IEnumerable<HeroCard> heroes = _cardCache.Query(new FindPlayableHeroCardsQuery()); return(Mapper.Map <IEnumerable <ICard>, IEnumerable <CardModel> >(heroes)); }
public IEnumerable <CardModel> GetHeroes() { var heroes = new FindPlayableHeroCardsQuery(_cardCache).Execute(); return(Mapper.Map <IEnumerable <ICard>, IEnumerable <CardModel> >(heroes)); }