Exemplo n.º 1
0
        public IEnumerable <GameDto> GetGamesByGenre(string genre)
        {
            var pipeline = new Pipeline <Game>();

            pipeline.Register(_filterFactory.MakeGamesByGenreFilter(genre));
            return(UnitOfWork.Games.Find(pipeline)
                   .Select(game => game.ToDto()));
        }